Compiler warnings fixes.
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)
     {