From b795331d8f7006e1cd15ddf124baf1384347d2db Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Fri, 17 Feb 2017 15:15:10 +0100 Subject: [PATCH] ipc.c: Constify parameter of get_key_or_die(). The function only reads from the location pointed at by the config_file variable. --- ipc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipc.c b/ipc.c index f0a8341..f7a676e 100644 --- a/ipc.c +++ b/ipc.c @@ -228,7 +228,7 @@ error: return ret; } -static inline int get_key_or_die(char *config_file) +static inline int get_key_or_die(const char *config_file) { int ret; struct stat statbuf; -- 2.39.2