]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
ipcrm: add static keyword to some functions
authorFrancesco Cosoleto <cosoleto@gmail.com>
Wed, 28 Sep 2011 14:25:29 +0000 (16:25 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 28 Sep 2011 22:25:30 +0000 (00:25 +0200)
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
sys-utils/ipcrm.c

index 90767d611e5a459ebc5eb3b1a60fe3d7b758682c..dc47f90bb8889427db5f9a4eda36fba12d457aac 100644 (file)
@@ -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;