diff options
-rw-r--r-- | lib/ChangeLog | 4 | ||||
-rw-r--r-- | lib/sockopt.c | 6 | ||||
-rw-r--r-- | lib/vty.c | 3 |
3 files changed, 9 insertions, 4 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog index 7b325783..0dee53b5 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,7 @@ +2004-09-26 Hasso Tepper <hasso at quagga.net> + + * vty.c, sockopt.c: Fix compiler warnings. + 2004-09-23 Hasso Tepper <hasso at quagga.net> * linklist.h: Remove list and listnode typedefs. diff --git a/lib/sockopt.c b/lib/sockopt.c index dc18a69a..1a7524b5 100644 --- a/lib/sockopt.c +++ b/lib/sockopt.c @@ -275,7 +275,7 @@ setsockopt_pktinfo (int af, int sock, int val) break; #endif default: - zlog_warn ("setsockopt_pktinfo: unknown address family %d"); + zlog_warn ("setsockopt_pktinfo: unknown address family %d", af); } return ret; } @@ -296,7 +296,7 @@ setsockopt_ifindex (int af, int sock, int val) break; #endif default: - zlog_warn ("setsockopt_ifindex: unknown address family %d"); + zlog_warn ("setsockopt_ifindex: unknown address family %d", af); } return ret; } @@ -356,7 +356,7 @@ getsockopt_ifindex (int af, struct msghdr *msgh) break; #endif default: - zlog_warn ("getsockopt_ifindex: unknown address family %d"); + zlog_warn ("getsockopt_ifindex: unknown address family %d", af); return (ifindex = 0); } } @@ -1942,7 +1942,8 @@ vtysh_accept (struct thread *thread) memset (&client, 0, sizeof (struct sockaddr_un)); client_len = sizeof (struct sockaddr_un); - sock = accept (accept_sock, (struct sockaddr *) &client, &client_len); + sock = accept (accept_sock, (struct sockaddr *) &client, + (socklen_t *) &client_len); if (sock < 0) { |