From 4d9f41440fbc3a1eea09daf59c14323a8b6e4ef2 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Fri, 3 Aug 2012 10:45:10 +0200 Subject: [PATCH] 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' --- ipc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2