ipc.c: Constify parameter of get_key_or_die().
authorAndre Noll <maan@tuebingen.mpg.de>
Fri, 17 Feb 2017 14:15:10 +0000 (15:15 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 16 Apr 2017 10:32:06 +0000 (12:32 +0200)
The function only reads from the location pointed at by the config_file
variable.

ipc.c

diff --git a/ipc.c b/ipc.c
index f0a8341..f7a676e 100644 (file)
--- 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;