summaryrefslogtreecommitdiff
path: root/lib/sockopt.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-02-01 13:12:16 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2017-02-01 13:12:16 +0100
commitff1c42fb9fc6c7f33657a06d26b3722a5bc86c07 (patch)
tree8d3b585fe7fd5b2c0a5ee5481acb101d45a0f280 /lib/sockopt.h
parent681ca8cc528a1aec1e451b9ae860d3825f999052 (diff)
*: fix warning fallout from set_socket_path
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/sockopt.h')
-rw-r--r--lib/sockopt.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sockopt.h b/lib/sockopt.h
index 8e7895dd6f..7e1bd62446 100644
--- a/lib/sockopt.h
+++ b/lib/sockopt.h
@@ -25,7 +25,8 @@
#include "sockunion.h"
/* Override (vty) socket paths, but keep the filename */
-extern void set_socket_path (char *path, char *defaultpath, char *newpath, int maxsize);
+extern void set_socket_path (char *path, const char *defaultpath,
+ char *newpath, int maxsize);
extern void setsockopt_so_recvbuf (int sock, int size);
extern void setsockopt_so_sendbuf (const int sock, int size);