aboutsummaryrefslogtreecommitdiff
path: root/util-linux/fdisk.c
diff options
context:
space:
mode:
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 9d7bd4e2c..f3c7ca4c6 100644
--- a/util-linux/fdisk.c
+++ b/util-linux/fdisk.c
@@ -325,6 +325,7 @@ struct globals {
325 s |= (sector >> 2) & 0xc0; \ 325 s |= (sector >> 2) & 0xc0; \
326 } while (0) 326 } while (0)
327 327
328#if ENABLE_FEATURE_FDISK_WRITABLE
328/* read line; return 0 or first printable char */ 329/* read line; return 0 or first printable char */
329static int 330static int
330read_line(const char *prompt) 331read_line(const char *prompt)
@@ -343,6 +344,7 @@ read_line(const char *prompt)
343 line_ptr++; 344 line_ptr++;
344 return *line_ptr; 345 return *line_ptr;
345} 346}
347#endif
346 348
347/* 349/*
348 * return partition name - uses static storage 350 * return partition name - uses static storage