summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-01-14 14:05:14 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-01-15 10:08:24 -0800
commit2afe9a69417cbd25fc5379faf22eba1a8e94b348 (patch)
treedb200fe36583259d320233583718d0787370012d
parentfcfa5f0dee6549994d8c4640fb61612d33369e74 (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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/BitEdit.c b/BitEdit.c
index 6e0f307..7be6a7a 100644
--- a/BitEdit.c
+++ b/BitEdit.c
@@ -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);
}