]> git.tuebingen.mpg.de Git - dss.git/commitdiff
mutex_get(): Change parameter from key_t to int.
authorAndre Noll <maan@systemlinux.org>
Fri, 3 Aug 2012 08:45:10 +0000 (10:45 +0200)
committerAndre Noll <maan@systemlinux.org>
Fri, 3 Aug 2012 08:45:10 +0000 (10:45 +0200)
The two callers obtain the key from get_key_or_die(), which
returns int. So pass an int anyway. This fixes a warning on
NetBSD:

ipc.c:263: warning: format '%x' expects type 'unsigned int', but argument 4 has type 'key_t'

ipc.c

diff --git a/ipc.c b/ipc.c
index 053e0fd99afcdb94f3d0ba9789a51a31f6c77106..c4389398b9b88eca5a599a25aa9b5e47d51ca808 100644 (file)
--- a/ipc.c
+++ b/ipc.c
@@ -256,7 +256,7 @@ static inline int get_key_or_die(char *config_file)
        return ret;
 }
 
-static int mutex_get(key_t key, int flags)
+static int mutex_get(int key, int flags)
 {
        int ret;