Compiler warnings fixes.
diff --git a/lib/ChangeLog b/lib/ChangeLog
index 7b32578..0dee53b 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 dc18a69..1a7524b 100644
--- a/lib/sockopt.c
+++ b/lib/sockopt.c
@@ -275,7 +275,7 @@
         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 @@
         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 @@
         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 b1c96f3..fdd5bbd 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -1942,7 +1942,8 @@
   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)
     {