From 49db7b428a4752749fb421bfbe50946cafa2fc3f Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Sun, 14 Jun 2009 16:25:26 +0000 Subject: Fix type of length argument to sockset syscalls. Various socket syscalls receive a length argument that should be a socklen_t rsp. a ptr to a socklen_t but instead int rsp. ptr to int were being passed. While in theory this was a bug it's harmless as dangerously large values would not be used but the issue manifested itself in a significant number of compilation warnings. --- tcpip/ttylinkd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tcpip/ttylinkd.c') diff --git a/tcpip/ttylinkd.c b/tcpip/ttylinkd.c index 032a5bd..234b7fd 100644 --- a/tcpip/ttylinkd.c +++ b/tcpip/ttylinkd.c @@ -106,7 +106,6 @@ int main(int argc, char *argv[]) struct sockaddr_in ctl_sin; struct in_addr my_addr, rem_addr; int ctl_skt, skt, new_skt; - int length; CTL_RESPONSE resp; CTL_MSG msg; struct protoent *ppe; @@ -116,10 +115,11 @@ int main(int argc, char *argv[]) char buf[256]; char user[NAME_SIZE]; struct sockaddr sa, msg_sa; - int sa_len, i; struct sockaddr_in *peer_sin=NULL, *msg_sin; struct sockaddr_ax25 *peer_sax; struct sockaddr_rose *peer_srose; + socklen_t sa_len, length; + int i; /* Open up the system logger */ openlog(argv[0], LOG_PID, LOG_DAEMON); -- cgit v1.2.3