]> git.tuebingen.mpg.de Git - dss.git/commitdiff
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 f0a8341de57f0a7db4c25ef2944e70b8d04c33ee..f7a676ed6ec07eba5995dcaa96b9f92483857155 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;