Skip to content

Commit

Permalink
main: Stay C89 compatible (var declaration in for).
Browse files Browse the repository at this point in the history
  • Loading branch information
pfalcon committed Jul 7, 2015
1 parent d275668 commit dc5e33b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ main(int argc, char **argv)
argv++;
argc--;
while (argc > 0 && argv[0][0] == '-') {
for (char *arg = &argv[0][1]; *arg; arg++) {
char *arg;
for (arg = &argv[0][1]; *arg; arg++) {
switch (*arg) {
case 'h':
usage();
Expand Down

0 comments on commit dc5e33b

Please sign in to comment.