summaryrefslogtreecommitdiff
path: root/xcalc.c
diff options
context:
space:
mode:
Diffstat (limited to 'xcalc.c')
-rw-r--r--xcalc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/xcalc.c b/xcalc.c
index d5d980f..f3ca18f 100644
--- a/xcalc.c
+++ b/xcalc.c
@@ -312,14 +312,12 @@ void Quit(void)
*/
static void Syntax(int argc, char **argv)
{
- register int i;
-
(void) fprintf(stderr, "%s: unknown options:", argv[0]);
- for (i=1; i <argc; i++)
+ for (int i = 1; i <argc; i++)
(void) fprintf(stderr, " %s", argv[i]);
(void) fprintf(stderr, "\n\n");
(void) fprintf(stderr, "Usage: %s", argv[0]);
- for (i=0; i < XtNumber(Options); i++)
+ for (Cardinal i = 0; i < XtNumber(Options); i++)
(void) fprintf(stderr, " [%s]", Options[i].option);
(void) fprintf(stderr, "\n");
XtDestroyApplicationContext(xtcontext);