]> 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, 27 Feb 2018 15:27:03 +0000 (16:27 +0100)
commitf3fd31803c499ffc95581641a05ab6aae24644c6
treeaf00deb5c2ae7b2265139cf64204336aa9bc3512
parent433412897c8ef8a128571fa1af3041adbb1c536d
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