diff options
author | Denis Vlasenko | 2007-04-13 23:22:00 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-04-13 23:22:00 +0000 |
commit | 87468857f685863cd763ae361c2cb3be0ee53a68 (patch) | |
tree | a8fec29d731170b2a36b27d18e2d9720c970bf57 /util-linux/mount.c | |
parent | f7fcca4af7593218f2185e69715ab3ae16c6cf29 (diff) | |
download | busybox-87468857f685863cd763ae361c2cb3be0ee53a68.zip busybox-87468857f685863cd763ae361c2cb3be0ee53a68.tar.gz |
style fixes
Diffstat (limited to 'util-linux/mount.c')
-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 e4a7c81..7dd7039 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; |