diff options
| author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-04-13 23:22:00 +0000 |
|---|---|---|
| committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-04-13 23:22:00 +0000 |
| commit | 87468857f685863cd763ae361c2cb3be0ee53a68 (patch) | |
| tree | a8fec29d731170b2a36b27d18e2d9720c970bf57 /util-linux | |
| parent | f7fcca4af7593218f2185e69715ab3ae16c6cf29 (diff) | |
| download | busybox-w32-87468857f685863cd763ae361c2cb3be0ee53a68.tar.gz busybox-w32-87468857f685863cd763ae361c2cb3be0ee53a68.tar.bz2 busybox-w32-87468857f685863cd763ae361c2cb3be0ee53a68.zip | |
style fixes
Diffstat (limited to 'util-linux')
| -rw-r--r-- | util-linux/mount.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c index e4a7c81c6..7dd70392a 100644 --- a/util-linux/mount.c +++ b/util-linux/mount.c | |||
| @@ -201,17 +201,16 @@ static int parse_mount_options(char *options, char **unrecognized) | |||
| 201 | 201 | ||
| 202 | static llist_t *get_block_backed_filesystems(void) | 202 | static llist_t *get_block_backed_filesystems(void) |
| 203 | { | 203 | { |
| 204 | static const char *const filesystems[] = { | 204 | static const char filesystems[2][sizeof("/proc/filesystems")] = { |
| 205 | "/etc/filesystems", | 205 | "/etc/filesystems", |
| 206 | "/proc/filesystems", | 206 | "/proc/filesystems", |
| 207 | 0 | ||
| 208 | }; | 207 | }; |
| 209 | char *fs, *buf; | 208 | char *fs, *buf; |
| 210 | llist_t *list = 0; | 209 | llist_t *list = 0; |
| 211 | int i; | 210 | int i; |
| 212 | FILE *f; | 211 | FILE *f; |
| 213 | 212 | ||
| 214 | for (i = 0; filesystems[i]; i++) { | 213 | for (i = 0; i < 2; i++) { |
| 215 | f = fopen(filesystems[i], "r"); | 214 | f = fopen(filesystems[i], "r"); |
| 216 | if (!f) continue; | 215 | if (!f) continue; |
| 217 | 216 | ||
