summaryrefslogtreecommitdiff
path: root/lib/sockopt.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-03-08 07:38:21 -0500
committerGitHub <noreply@github.com>2017-03-08 07:38:21 -0500
commit790c77ed025f2d71d0aed1f0183bbedbbc1799e6 (patch)
tree08ce899248d37a102c3be14136ec7103c59b37a8 /lib/sockopt.c
parentae6ba9ba043652bde3b0000f5299eff31d351ee3 (diff)
parent2fcc7988ea09b8505c0fbf134ecffe98e4c026b6 (diff)
Merge pull request #261 from opensourcerouting/lib_cleanup
startup, option parsing & logging refactor
Diffstat (limited to 'lib/sockopt.c')
-rw-r--r--lib/sockopt.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/sockopt.c b/lib/sockopt.c
index 91b0602b3a..2a9f907cb3 100644
--- a/lib/sockopt.c
+++ b/lib/sockopt.c
@@ -29,29 +29,6 @@
#include "sockopt.h"
#include "sockunion.h"
-/* Replace the path of given defaultpath with newpath, but keep filename */
-void
-set_socket_path (char *path, const char *defaultpath, char *newpath, int maxsize)
-{
- const char *sock_name;
-
- sock_name = strrchr(defaultpath, '/');
- if (sock_name)
- /* skip '/' */
- sock_name++;
- else
- /*
- * VTYSH_PATH configured as relative path
- * during config? Should really never happen for
- * sensible config
- */
- sock_name = defaultpath;
-
- strlcpy (path, newpath, maxsize);
- strlcat (path, "/", maxsize);
- strlcat (path, sock_name, maxsize);
-}
-
void
setsockopt_so_recvbuf (int sock, int size)
{