Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #5 from mariux64/fix-clang-warnings
Fix Clang warnings
  • Loading branch information
wwwutz committed Jul 18, 2017
2 parents 35fa410 + efa72d7 commit 04fbcb9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions xdu.c
Expand Up @@ -215,15 +215,15 @@ char **argv;
xsetup(&argc, argv);
if (argc == 1) {
if (isatty(fileno(stdin))) {
fprintf(stderr, usage);
fprintf(stderr, "%s", usage);
exit(1);
} else {
parse_file("-");
}
} else if (argc == 2 && strcmp(argv[1], "-help") != 0) {
parse_file(argv[1]);
} else {
fprintf(stderr, usage);
fprintf(stderr, "%s", usage);
exit(1);
}
top.size = fix_tree(&top);
Expand Down Expand Up @@ -885,6 +885,7 @@ void savepsnode(FILE * fp, struct node *nodep, struct rect rect, int showsize)
name = label;
break;
default:
name = NULL;
break;
}

Expand Down

0 comments on commit 04fbcb9

Please sign in to comment.