diff options
Diffstat (limited to 'sntp/libopts/find.c')
-rw-r--r-- | sntp/libopts/find.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sntp/libopts/find.c b/sntp/libopts/find.c index 8d4789628cef..90591cc9243d 100644 --- a/sntp/libopts/find.c +++ b/sntp/libopts/find.c @@ -12,7 +12,7 @@ /* * This file is part of AutoOpts, a companion to AutoGen. * AutoOpts is free software. - * AutoOpts is Copyright (C) 1992-2014 by Bruce Korb - all rights reserved + * AutoOpts is Copyright (C) 1992-2015 by Bruce Korb - all rights reserved * * AutoOpts is available under any one of two licenses. The license * in use must be one of these two and the choice is under the control @@ -58,7 +58,7 @@ static tSuccess get_opt_arg_may(tOptions * pOpts, tOptState * o_st); static tSuccess -get_opt_arg_none(tOptions * pOpts, tOptState* o_st); +get_opt_arg_none(tOptions * pOpts, tOptState * o_st); /* = = = END-STATIC-FORWARD = = = */ /** @@ -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 *)(intptr_t)p; + *arg_pp = (char *)p; return res; default: @@ -409,9 +409,9 @@ opt_find_long(tOptions * opts, char const * opt_name, tOptState * state) * @param pOptState state about current option */ LOCAL tSuccess -opt_find_short(tOptions* pOpts, uint_t optValue, tOptState* pOptState) +opt_find_short(tOptions * pOpts, uint_t optValue, tOptState * pOptState) { - tOptDesc* pRes = pOpts->pOptDesc; + tOptDesc * pRes = pOpts->pOptDesc; int ct = pOpts->optCt; /* @@ -554,7 +554,7 @@ get_opt_arg_may(tOptions * pOpts, tOptState * o_st) if (*++pOpts->pzCurOpt != NUL) o_st->pzOptArg = pOpts->pzCurOpt; else { - char* pzLA = pOpts->origArgVect[ pOpts->curOptIdx ]; + char * pzLA = pOpts->origArgVect[ pOpts->curOptIdx ]; /* * BECAUSE it is optional, we must make sure @@ -577,7 +577,7 @@ get_opt_arg_may(tOptions * pOpts, tOptState * o_st) */ if ( (o_st->pzOptArg == NULL) && (! NAMED_OPTS(pOpts))) { - char* pzLA = pOpts->origArgVect[ pOpts->curOptIdx ]; + char * pzLA = pOpts->origArgVect[ pOpts->curOptIdx ]; /* * BECAUSE it is optional, we must make sure @@ -616,7 +616,7 @@ get_opt_arg_may(tOptions * pOpts, tOptState * o_st) * @returns SUCCESS or FAILURE */ static tSuccess -get_opt_arg_none(tOptions * pOpts, tOptState* o_st) +get_opt_arg_none(tOptions * pOpts, tOptState * o_st) { /* * No option argument. Make sure next time around we find @@ -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 *)(intptr_t)&(opts->specOptIdx.default_opt); + def_opt = VOIDP(&(opts->specOptIdx.default_opt)); def = *def_opt; *def_opt = NO_EQUIVALENT; res = opt_find_long(opts, pz, o_st); |