From: Andre Noll Date: Fri, 3 Aug 2012 08:45:10 +0000 (+0200) Subject: mutex_get(): Change parameter from key_t to int. X-Git-Tag: v0.1.5~13^2 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=4d9f41440fbc3a1eea09daf59c14323a8b6e4ef2;p=dss.git mutex_get(): Change parameter from key_t to int. 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' --- diff --git a/ipc.c b/ipc.c index 053e0fd..c438939 100644 --- 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;