diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-02-01 10:52:21 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-01 10:52:21 -0500 |
| commit | 5a2bd83d9de7bdd528b4be78f337f9c7a196c70b (patch) | |
| tree | 477672d8900b8fcba04bd36f7b5122242d9ac876 /lib/sockopt.c | |
| parent | 681ca8cc528a1aec1e451b9ae860d3825f999052 (diff) | |
| parent | d24736fa17f9970dd58c5e6417bf3a5444011f5e (diff) | |
Merge pull request #146 from opensourcerouting/assorted-stable
assorted fixes for stable/2.0
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) |
