summaryrefslogtreecommitdiff
path: root/e2fsprogs/e2fs_lib.c
diff options
context:
space:
mode:
authorDenis Vlasenko2007-04-15 11:48:27 +0000
committerDenis Vlasenko2007-04-15 11:48:27 +0000
commit8acf521432b75923c8ece0b4633a25062e30c255 (patch)
tree419c8b72017d869f736cb5d6e1bf732b78d655cf /e2fsprogs/e2fs_lib.c
parentbe1a9d4237662f179e2b8f6c7bffd747f3f8fd73 (diff)
downloadbusybox-8acf521432b75923c8ece0b4633a25062e30c255.zip
busybox-8acf521432b75923c8ece0b4633a25062e30c255.tar.gz
e2fsprogs: stop using statics in chattr. Minor code shrinkage (-130 bytes)
Diffstat (limited to 'e2fsprogs/e2fs_lib.c')
-rw-r--r--e2fsprogs/e2fs_lib.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/e2fsprogs/e2fs_lib.c b/e2fsprogs/e2fs_lib.c
index ea5c802..890cb30 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" },