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-87468857f685863cd763ae361c2cb3be0ee53a68.tar.gz |
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) static llist_t *get_block_backed_filesystems(void) { - static const char *const filesystems[] = { + static const char filesystems[2][sizeof("/proc/filesystems")] = { "/etc/filesystems", "/proc/filesystems", - 0 }; char *fs, *buf; llist_t *list = 0; int i; FILE *f; - for (i = 0; filesystems[i]; i++) { + for (i = 0; i < 2; i++) { f = fopen(filesystems[i], "r"); if (!f) continue; |