diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-13 14:36:25 +0400 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-13 14:36:25 +0400 |
commit | e324184c0509cc0db168ce29546e1b52800a79c6 (patch) | |
tree | 9d4f18b3cc1ab715b6ff91cc9e3e942d11dfc51f /util-linux/ipcrm.c | |
parent | 5f1b149d541ebba7cab841cb647f113248f9fb8f (diff) |
s/#ifdef CONFIG_/#if ENABLE_/g
Diffstat (limited to 'util-linux/ipcrm.c')
-rw-r--r-- | util-linux/ipcrm.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/util-linux/ipcrm.c b/util-linux/ipcrm.c index 1e6206217..f49d28ee2 100644 --- a/util-linux/ipcrm.c +++ b/util-linux/ipcrm.c @@ -29,7 +29,10 @@ union semun { }; #endif -#ifndef CONFIG_IPCRM_DROP_LEGACY +#define IPCRM_LEGACY 1 + + +#if IPCRM_LEGACY typedef enum type_id { SHM, @@ -70,7 +73,7 @@ static int remove_ids(type_id type, int argc, char **argv) return nb_errors; } -#endif /* #ifndef CONFIG_IPCRM_DROP_LEGACY */ +#endif /* IPCRM_LEGACY */ int ipcrm_main(int argc, char **argv); @@ -82,7 +85,7 @@ int ipcrm_main(int argc, char **argv) /* if the command is executed without parameters, do nothing */ if (argc == 1) return 0; -#ifndef CONFIG_IPCRM_DROP_LEGACY +#if IPCRM_LEGACY /* check to see if the command is being invoked in the old way if so then run the old code. Valid commands are msg, shm, sem. */ { @@ -113,7 +116,7 @@ int ipcrm_main(int argc, char **argv) return 0; } } -#endif /* #ifndef CONFIG_IPCRM_DROP_LEGACY */ +#endif /* IPCRM_LEGACY */ /* process new syntax to conform with SYSV ipcrm */ while ((c = getopt(argc, argv, "q:m:s:Q:M:S:h?")) != -1) { |