summaryrefslogtreecommitdiff
path: root/lib/vty.c
diff options
context:
space:
mode:
authorhasso <hasso>2004-09-26 16:08:11 +0000
committerhasso <hasso>2004-09-26 16:08:11 +0000
commite473b032b860444b9656cee1654b0120f77b52b1 (patch)
tree8885e2b15c70fb231e775dead3cc30bea18311ce /lib/vty.c
parentc83dcd3f81ed21c72ad50e56a6c515c7eacac44c (diff)
Compiler warnings fixes.
Diffstat (limited to 'lib/vty.c')
-rw-r--r--lib/vty.c3
1 files changed, 2 insertions, 1 deletions
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)
{