aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2017-04-05 10:13:47 -0700
committerRob Landley <rob@landley.net>2017-04-11 12:25:40 -0500
commit42704b702d3d479f96074501ea574fa7e2694855 (patch)
tree056ba54cfcc1e4066cdf7f3dd7c57bb4975364f5
parent36b6eb775f8913dbb6ded4fe05a8bfd5e0130a38 (diff)
downloadtoybox-42704b702d3d479f96074501ea574fa7e2694855.tar.gz
Make fdisk buildable.
The argument to help_exit is a char*, not a FILE*.
-rw-r--r--toys/pending/fdisk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/pending/fdisk.c b/toys/pending/fdisk.c
index d000c055..08cfa71f 100644
--- a/toys/pending/fdisk.c
+++ b/toys/pending/fdisk.c
@@ -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');