diff options
author | Leah Neukirchen <leah@vuxu.org> | 2017-07-04 15:23:57 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2017-07-04 15:23:57 +0200 |
commit | 53a837ea55891f26a1cdefd06a03ac54288b0e8d (patch) | |
tree | acadfd15d50c960f9724e627854dff4b0c6d4b05 | |
parent | b58c34180e438c06ee2ba5b0a3324c48e1d7f7f5 (diff) | |
download | xdu-53a837ea55891f26a1cdefd06a03ac54288b0e8d.tar.gz xdu-53a837ea55891f26a1cdefd06a03ac54288b0e8d.tar.xz xdu-53a837ea55891f26a1cdefd06a03ac54288b0e8d.zip |
xdu: print usage as string
-rw-r--r-- | xdu.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/xdu.c b/xdu.c index aa9a5c4..09c3042 100644 --- a/xdu.c +++ b/xdu.c @@ -187,9 +187,8 @@ Graphically displays the output of du in an X window\n\ Toolkit options: -fg, -bg, -rv, -display, -geometry, etc.\n\ "; -main(argc,argv) -int argc; -char **argv; +int +main (int argc, char **argv) { top.name = strdup("[root]"); top.size = -1; @@ -197,7 +196,7 @@ char **argv; xsetup(&argc,argv); if (argc == 1) { if (isatty(fileno(stdin))) { - fprintf(stderr, usage); + fprintf(stderr, "%s", usage); exit(1); } else { parse_file("-"); @@ -205,7 +204,7 @@ char **argv; } 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); |