aboutsummaryrefslogtreecommitdiff
path: root/sntp/libopts/pgusage.c
diff options
context:
space:
mode:
Diffstat (limited to 'sntp/libopts/pgusage.c')
-rw-r--r--sntp/libopts/pgusage.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sntp/libopts/pgusage.c b/sntp/libopts/pgusage.c
index a385b4d999a8..3d229c18d058 100644
--- a/sntp/libopts/pgusage.c
+++ b/sntp/libopts/pgusage.c
@@ -13,7 +13,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
@@ -33,7 +33,7 @@
*/
#if defined(HAVE_WORKING_FORK)
-static FILE *
+static inline FILE *
open_tmp_usage(char ** buf)
{
char * bf;
@@ -64,7 +64,7 @@ open_tmp_usage(char ** buf)
}
}
-static char *
+static inline char *
mk_pager_cmd(char const * fname)
{
/*
@@ -85,10 +85,10 @@ mk_pager_cmd(char const * fname)
if (pager == NULL)
pager = MORE_STR;
- bfsz = strlen(fname) + strlen(pager) + PAGE_USAGE_FMT_LEN;
+ bfsz = 2 * strlen(fname) + strlen(pager) + PAGE_USAGE_FMT_LEN;
res = AGALOC(bfsz, "more cmd");
snprintf(res, bfsz, PAGE_USAGE_FMT, pager, fname);
- AGFREE((void*)(intptr_t)fname);
+ AGFREE(fname);
return res;
}
}