summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/ChangeLog4
-rw-r--r--lib/sockopt.c6
-rw-r--r--lib/vty.c3
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);
}
}
diff --git a/lib/vty.c b/lib/vty.c
index b1c96f37..fdd5bbdb 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -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)
{