From 0a7c8ef6e220b5f8fff4f2cb0af630255a2a6a58 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 22 Feb 2006 17:01:00 +0000 Subject: Patch from Denis Vlasenko to constify things and fix a few typos. --- coreutils/stat.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'coreutils/stat.c') diff --git a/coreutils/stat.c b/coreutils/stat.c index 44289fbaa..c845a2aa7 100644 --- a/coreutils/stat.c +++ b/coreutils/stat.c @@ -120,12 +120,11 @@ static char const *human_fstype(long f_type) { 0x858458f6, "romfs" }, { 0x73717368, "squashfs" }, { 0x62656572, "sysfs" }, - { 0, "UNKNOWN" }, - { 0, NULL } + { 0, "UNKNOWN" } }; for (i=0; humantypes[i].type; ++i) if (humantypes[i].type == f_type) - return humantypes[i].fs; + break; return humantypes[i].fs; } -- cgit v1.2.3