diff options
author | jbj <devnull@localhost> | 2001-09-21 15:07:11 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2001-09-21 15:07:11 +0000 |
commit | 1eef0782f60f9d8d80be273ace982ad4c2a56d98 (patch) | |
tree | ca6f47772d1cfa3b9900cf93ae515f1c5a31a4cd /popt/popthelp.c | |
parent | 59a045374df64f3bc62eb200f7d11338ea2787a8 (diff) | |
download | librpm-tizen-1eef0782f60f9d8d80be273ace982ad4c2a56d98.tar.gz librpm-tizen-1eef0782f60f9d8d80be273ace982ad4c2a56d98.tar.bz2 librpm-tizen-1eef0782f60f9d8d80be273ace982ad4c2a56d98.zip |
- lclint-3.0.0.15 fiddles.
CVS patchset: 5067
CVS date: 2001/09/21 15:07:11
Diffstat (limited to 'popt/popthelp.c')
-rw-r--r-- | popt/popthelp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/popt/popthelp.c b/popt/popthelp.c index d94b98ed0..81ee7b9c5 100644 --- a/popt/popthelp.c +++ b/popt/popthelp.c @@ -254,7 +254,9 @@ static void singleOptionHelp(FILE * fp, int maxLeftCol, } *le++ = '='; if (negate) *le++ = '~'; + /*@-formatconst@*/ le += sprintf(le, (ops ? "0x%lx" : "%ld"), aLong); + /*@=formatconst@*/ *le++ = ']'; } break; case POPT_ARG_INT: @@ -301,7 +303,9 @@ static void singleOptionHelp(FILE * fp, int maxLeftCol, ch++; sprintf(format, "%%.%ds\n%%%ds", (int) (ch - help), indentLength); + /*@-formatconst@*/ fprintf(fp, format, help, " "); + /*@=formatconst@*/ help = ch; while (isspace(*help) && *help) help++; helpLength = strlen(help); |