]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
gpst: Clean up some 'const char *' that shouldn't be const
authorDavid Woodhouse <dwmw2@infradead.org>
Tue, 15 Aug 2017 11:30:40 +0000 (12:30 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Tue, 15 Aug 2017 11:30:40 +0000 (12:30 +0100)
commit563a649cbdf98df7f2dd8f94dea22bf34d2aab7c
treecd61c90352108f6773facd45e97b2cfa71cfc427
parentf464fa3c6ab88a067e2e353ae218c1697284c57e
gpst: Clean up some 'const char *' that shouldn't be const

... and the associated forced casts to non-const on free()

Although actually... given that we aren't doing the string expansion
thing, perhaps the 'var' returned by xmlnode_get_text() *could* be
const in this case, and just return node->content. Most callers do
seem to have to free it instead of really keeping it, and the few
that want to keep it can use strdup(). Dan?

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
gpst.c