From 551ff5c2a082e24248b6a1c62878c24cf284f574 Mon Sep 17 00:00:00 2001 From: christos Date: Thu, 12 Nov 1998 15:52:21 +0000 Subject: [PATCH] use one define per static array instead of defining all three with DKTYPENAMES --- sys/sys/disklabel.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sys/sys/disklabel.h b/sys/sys/disklabel.h index 9939bea98ddf..c7db08728c26 100644 --- a/sys/sys/disklabel.h +++ b/sys/sys/disklabel.h @@ -1,4 +1,4 @@ -/* $NetBSD: disklabel.h,v 1.48 1998/10/06 01:17:27 mark Exp $ */ +/* $NetBSD: disklabel.h,v 1.49 1998/11/12 15:52:21 christos Exp $ */ /* * Copyright (c) 1987, 1988, 1993 @@ -242,7 +242,7 @@ static const char *const dktypenames[] = { #define FS_FILECORE 16 /* Acorn Filecore Filing System */ #define FS_EX2FS 17 /* Linux Extended 2 file system */ -#ifdef DKTYPENAMES +#ifdef FSTYPENAMES static const char *const fstypenames[] = { "unused", "swap", @@ -264,7 +264,10 @@ static const char *const fstypenames[] = { "Linux Ext2", NULL }; +#define FSMAXTYPES (sizeof(fstypenames) / sizeof(fstypenames[0]) - 1) +#endif +#ifdef FSCKNAMES /* These are the names MOUNT_XXX from */ static const char *const fscknames[] = { NULL, /* unused */ @@ -287,8 +290,8 @@ static const char *const fscknames[] = { "ext2fs", /* Linux Ext2 */ NULL /* NULL */ }; +#define FSMAXNAMES (sizeof(fscknames) / sizeof(fscknames[0]) - 1) -#define FSMAXTYPES (sizeof(fstypenames) / sizeof(fstypenames[0]) - 1) #endif /*