OSDN Git Service

Make fdisk buildable.
authorElliott Hughes <enh@google.com>
Wed, 5 Apr 2017 17:13:47 +0000 (10:13 -0700)
committerRob Landley <rob@landley.net>
Tue, 11 Apr 2017 17:25:40 +0000 (12:25 -0500)
The argument to help_exit is a char*, not a FILE*.

toys/pending/fdisk.c

index d000c05..08cfa71 100644 (file)
@@ -1486,7 +1486,7 @@ void fdisk_main(void)
     toys.exitval = 0;
     return;
   } else {
-    if (toys.optc != 1) help_exit(stdout);
+    if (toys.optc != 1) help_exit(0);
     if (read_mbr(toys.optargs[0], 1)) return;
     while (1) {
       xputc('\n');