summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/sntp/libopts/putshell.c
diff options
context:
space:
mode:
authorcy <cy@FreeBSD.org>2015-07-05 15:42:16 +0000
committercy <cy@FreeBSD.org>2015-07-05 15:42:16 +0000
commit4798ffa9e1d37998fdd0d94d9c2ad9cb3fb5d110 (patch)
treefb96356e3ef85aaa8d1f5939a9decd315a7ca596 /contrib/ntp/sntp/libopts/putshell.c
parent8920bf0c56d10d9413aa5f7595886836b12c974f (diff)
parent5ef283fde5be3bb35376b46b0d8cdc0e6dff0ad4 (diff)
downloadFreeBSD-src-4798ffa9e1d37998fdd0d94d9c2ad9cb3fb5d110.zip
FreeBSD-src-4798ffa9e1d37998fdd0d94d9c2ad9cb3fb5d110.tar.gz
MFV ntp-4.2.8p3 (r284990).
Approved by: roberto, delphij Security: VuXML: 0d0f3050-1f69-11e5-9ba9-d050996490d0 Security: http://bugs.ntp.org/show_bug.cgi?id=2853 Security: https://www.kb.cert.org/vuls/id/668167 Security: http://support.ntp.org/bin/view/Main/SecurityNotice#June_2015_NTP_Security_Vulnerabi
Diffstat (limited to 'contrib/ntp/sntp/libopts/putshell.c')
-rw-r--r--contrib/ntp/sntp/libopts/putshell.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/contrib/ntp/sntp/libopts/putshell.c b/contrib/ntp/sntp/libopts/putshell.c
index 4b0fa10..9bfa984 100644
--- a/contrib/ntp/sntp/libopts/putshell.c
+++ b/contrib/ntp/sntp/libopts/putshell.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
@@ -296,7 +296,7 @@ print_membership(tOptions * pOpts, tOptDesc * pOD)
uintptr_t val = 1;
printf(zOptNumFmt, pOpts->pzPROGNAME, pOD->pz_NAME,
(int)(uintptr_t)(pOD->optCookie));
- pOD->optCookie = (void*)(uintptr_t)~0UL;
+ pOD->optCookie = VOIDP(~0UL);
(*(pOD->pOptProc))(OPTPROC_RETURN_VALNAME, pOD);
pz = pOD->optArg.argString;
@@ -323,7 +323,7 @@ print_membership(tOptions * pOpts, tOptDesc * pOD)
static void
print_stacked_arg(tOptions * pOpts, tOptDesc * pOD)
{
- tArgList* pAL = (tArgList*)pOD->optCookie;
+ tArgList * pAL = (tArgList *)pOD->optCookie;
char const ** ppz = pAL->apzArgs;
int ct = pAL->useCt;
@@ -363,19 +363,19 @@ print_reordering(tOptions * opts)
/*=export_func optionPutShell
* what: write a portable shell script to parse options
* private:
- * arg: tOptions*, pOpts, the program options descriptor
+ * arg: tOptions *, pOpts, the program options descriptor
* doc: This routine will emit portable shell script text for parsing
* the options described in the option definitions.
=*/
void
-optionPutShell(tOptions* pOpts)
+optionPutShell(tOptions * pOpts)
{
int optIx = 0;
printf(zOptCtFmt, pOpts->curOptIdx-1);
do {
- tOptDesc* pOD = pOpts->pOptDesc + optIx;
+ tOptDesc * pOD = pOpts->pOptDesc + optIx;
if ((pOD->fOptState & OPTST_NO_OUTPUT_MASK) != 0)
continue;
@@ -396,7 +396,7 @@ optionPutShell(tOptions* pOpts)
* but copy over the set-state bits.
*/
if (pOD->optActualIndex != optIx) {
- tOptDesc* p = pOpts->pOptDesc + pOD->optActualIndex;
+ tOptDesc * p = pOpts->pOptDesc + pOD->optActualIndex;
p->optArg = pOD->optArg;
p->fOptState &= OPTST_PERSISTENT_MASK;
p->fOptState |= pOD->fOptState & ~OPTST_PERSISTENT_MASK;
OpenPOWER on IntegriCloud