X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fopt%2Fhelpers.c;fp=ccan%2Fopt%2Fhelpers.c;h=e7ab273cdcede67a9bec9ae868ec8d8faa84cd6b;hb=fba46ae074025cb605d46be9b1080e0649635dd6;hp=17d56e0201dc66d7810b26f1cd40a1e5e702f0a7;hpb=ec822c6589eeaeb3f45c12876db2016be5808688;p=ccan diff --git a/ccan/opt/helpers.c b/ccan/opt/helpers.c index 17d56e02..e7ab273c 100644 --- a/ccan/opt/helpers.c +++ b/ccan/opt/helpers.c @@ -1,5 +1,6 @@ /* Licensed under GPLv3+ - see LICENSE file for details */ #include +#include #include #include #include @@ -52,7 +53,7 @@ char *opt_set_invbool_arg(const char *arg, bool *b) /* Set a char *. */ char *opt_set_charp(const char *arg, char **p) { - *p = (char *)arg; + *p = cast_const(char *, arg); return NULL; }