From 8acf521432b75923c8ece0b4633a25062e30c255 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 15 Apr 2007 11:48:27 +0000 Subject: e2fsprogs: stop using statics in chattr. Minor code shrinkage (-130 bytes) --- e2fsprogs/e2fs_lib.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'e2fsprogs/e2fs_lib.c') diff --git a/e2fsprogs/e2fs_lib.c b/e2fsprogs/e2fs_lib.c index ea5c8026c..890cb302b 100644 --- a/e2fsprogs/e2fs_lib.c +++ b/e2fsprogs/e2fs_lib.c @@ -12,11 +12,11 @@ #define HAVE_EXT2_IOCTLS 1 #if INT_MAX == LONG_MAX -#define IF_LONG_IS_SAME(x) x -#define IF_LONG_IS_WIDER(x) +#define IF_LONG_IS_SAME(...) __VA_ARGS__ +#define IF_LONG_IS_WIDER(...) #else -#define IF_LONG_IS_SAME(x) -#define IF_LONG_IS_WIDER(x) x +#define IF_LONG_IS_SAME(...) +#define IF_LONG_IS_WIDER(...) __VA_ARGS__ #endif static void close_silently(int fd) @@ -147,6 +147,8 @@ struct flags_name { const char *long_name; }; +/* TODO: apart from I and (disabled) COMPRESSION flags, this + * is a duplicate of a table from chattr. Merge? */ static const struct flags_name flags_array[] = { { EXT2_SECRM_FL, 's', "Secure_Deletion" }, { EXT2_UNRM_FL, 'u' , "Undelete" }, -- cgit v1.2.3