diff options
Diffstat (limited to 'sntp/libopts/find.c')
-rw-r--r-- | sntp/libopts/find.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sntp/libopts/find.c b/sntp/libopts/find.c index 1ec02e5..8d47896 100644 --- a/sntp/libopts/find.c +++ b/sntp/libopts/find.c @@ -80,7 +80,7 @@ parse_opt(char const ** nm_pp, char ** arg_pp, char * buf, size_t bufsz) buf[res] = NUL; *nm_pp = buf; - *arg_pp = (char *)p; + *arg_pp = (char *)(intptr_t)p; return res; default: @@ -711,7 +711,7 @@ find_opt(tOptions * opts, tOptState * o_st) * strip off the "const" quality of the "default_opt" field. */ while (*(++pz) == '-') ; - def_opt = (void *)&(opts->specOptIdx.default_opt); + def_opt = (void *)(intptr_t)&(opts->specOptIdx.default_opt); def = *def_opt; *def_opt = NO_EQUIVALENT; res = opt_find_long(opts, pz, o_st); |