assorted fixes uncovered by randomconfig runs

This commit is contained in:
Denis Vlasenko
2007-03-22 22:22:10 +00:00
parent d0587ed966
commit 58875aefe4
3 changed files with 15 additions and 2 deletions

View 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