diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2017-02-01 13:12:16 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2017-02-01 13:12:16 +0100 |
| commit | ff1c42fb9fc6c7f33657a06d26b3722a5bc86c07 (patch) | |
| tree | 8d3b585fe7fd5b2c0a5ee5481acb101d45a0f280 /lib/sockopt.c | |
| parent | 681ca8cc528a1aec1e451b9ae860d3825f999052 (diff) | |
*: fix warning fallout from set_socket_path
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/sockopt.c')
| -rw-r--r-- | lib/sockopt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sockopt.c b/lib/sockopt.c index 570b575a7a..e661b4cc56 100644 --- a/lib/sockopt.c +++ b/lib/sockopt.c @@ -31,9 +31,9 @@ /* Replace the path of given defaultpath with newpath, but keep filename */ void -set_socket_path (char *path, char *defaultpath, char *newpath, int maxsize) +set_socket_path (char *path, const char *defaultpath, char *newpath, int maxsize) { - char *sock_name; + const char *sock_name; sock_name = strrchr(defaultpath, '/'); if (sock_name) |
