summaryrefslogtreecommitdiffstats
path: root/sys-utils/ipcrm.c
diff options
context:
space:
mode:
authorFrancesco Cosoleto2011-09-28 16:25:29 +0200
committerKarel Zak2011-09-29 00:25:30 +0200
commit14cbdb85dd587fc9c27686e897870002bd7685a5 (patch)
tree020ccb93baf0ec9797f77d6746b3783964570bfc /sys-utils/ipcrm.c
parentmisc: use %m in format string instead of %s and strerror(errno) (diff)
downloadkernel-qcow2-util-linux-14cbdb85dd587fc9c27686e897870002bd7685a5.tar.gz
kernel-qcow2-util-linux-14cbdb85dd587fc9c27686e897870002bd7685a5.tar.xz
kernel-qcow2-util-linux-14cbdb85dd587fc9c27686e897870002bd7685a5.zip
ipcrm: add static keyword to some functions
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
Diffstat (limited to 'sys-utils/ipcrm.c')
-rw-r--r--sys-utils/ipcrm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys-utils/ipcrm.c b/sys-utils/ipcrm.c
index 90767d611..dc47f90bb 100644
--- a/sys-utils/ipcrm.c
+++ b/sys-utils/ipcrm.c
@@ -64,7 +64,7 @@ static void __attribute__ ((__noreturn__)) usage(FILE * out)
exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS);
}
-int remove_id(int type, int iskey, int id)
+static int remove_id(int type, int iskey, int id)
{
int ret;
char *errmsg;
@@ -163,7 +163,7 @@ static int deprecated_main(int argc, char **argv)
return 1;
}
-unsigned long strtokey(const char *str, const char *errmesg)
+static unsigned long strtokey(const char *str, const char *errmesg)
{
unsigned long num;
char *end = NULL;
@@ -230,7 +230,7 @@ static int key_to_id(type_id type, char *optarg)
return id;
}
-int remove_all(type_id type)
+static int remove_all(type_id type)
{
int ret = 0;
int id, rm_me, maxid;