summaryrefslogtreecommitdiff
path: root/util-linux/fdisk.c
diff options
context:
space:
mode:
authorDenis Vlasenko2007-03-22 22:22:10 +0000
committerDenis Vlasenko2007-03-22 22:22:10 +0000
commit58875aefe4662f83273a787db5aae3ed3abd470a (patch)
treed28f81d979f0c9fedf630b8bb0af27145bc1b72d /util-linux/fdisk.c
parentd0587ed9666d2d3aa65c42007ae93244cfc58568 (diff)
downloadbusybox-58875aefe4662f83273a787db5aae3ed3abd470a.zip
busybox-58875aefe4662f83273a787db5aae3ed3abd470a.tar.gz
assorted fixes uncovered by randomconfig runs
Diffstat (limited to 'util-linux/fdisk.c')
-rw-r--r--util-linux/fdisk.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c
index 9d7bd4e..f3c7ca4 100644
--- a/util-linux/fdisk.c
+++ b/util-linux/fdisk.c
@@ -325,6 +325,7 @@ struct globals {
s |= (sector >> 2) & 0xc0; \
} while (0)
+#if ENABLE_FEATURE_FDISK_WRITABLE
/* read line; return 0 or first printable char */
static int
read_line(const char *prompt)
@@ -343,6 +344,7 @@ read_line(const char *prompt)
line_ptr++;
return *line_ptr;
}
+#endif
/*
* return partition name - uses static storage