diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-01-14 14:05:14 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-01-15 10:08:24 -0800 |
commit | 2afe9a69417cbd25fc5379faf22eba1a8e94b348 (patch) | |
tree | db200fe36583259d320233583718d0787370012d | |
parent | fcfa5f0dee6549994d8c4640fb61612d33369e74 (diff) |
Use fputs instead of fprintf with no format arg to print usage message.
Clear gcc warning of:
BitEdit.c:986: warning: format not a string literal and no format arguments
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Dirk Wallenstein <halsmit@t-online.de>
-rw-r--r-- | BitEdit.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -50,7 +50,7 @@ from The Open Group. #include <X11/bitmaps/xlogo16> -static char *usage = "[-options ...] filename\n\ +static const char *usage = "[-options ...] filename\n\ \n\ where options include all standard toolkit options plus:\n\ -size WIDTHxHEIGHT\n\ @@ -982,7 +982,7 @@ int main(int argc, char *argv[]) options, XtNumber(options), &argc, argv); if (argc > 2) { - fprintf(stderr, usage); + fputs(usage, stderr); exit (0); } |