assorted fixes uncovered by randomconfig runs
[oweals/busybox.git] / util-linux / fdisk.c
index 9d7bd4e2cc8ab61622bbc3ad33b001790dabb4f1..f3c7ca4c632b9eed5005d57f2687ff5a532226fc 100644 (file)
@@ -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