The argument to help_exit is a char*, not a FILE*.
---
 toys/pending/fdisk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
From 5bdf187cba299ed2837e5ad0cd7d6b553b447384 Mon Sep 17 00:00:00 2001
From: Elliott Hughes <e...@google.com>
Date: Wed, 5 Apr 2017 10:13:47 -0700
Subject: [PATCH] Make fdisk buildable.

The argument to help_exit is a char*, not a FILE*.
---
 toys/pending/fdisk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/toys/pending/fdisk.c b/toys/pending/fdisk.c
index d000c05..08cfa71 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');
-- 
2.12.2.715.g7642488e1d-goog

_______________________________________________
Toybox mailing list
Toybox@lists.landley.net
http://lists.landley.net/listinfo.cgi/toybox-landley.net

Reply via email to