From ccacf84f7602946c76944aae6ce1d5e2aa2b4814 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Sun, 14 Jun 2009 16:25:33 +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. --- ax25mond/ax25mond.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ax25mond') diff --git a/ax25mond/ax25mond.c b/ax25mond/ax25mond.c index 81b2da9..6f842e1 100644 --- a/ax25mond/ax25mond.c +++ b/ax25mond/ax25mond.c @@ -68,7 +68,7 @@ char sock_filename[MAX_SOCKETS][100]; int sock_num = 0; int conn_list[MAX_CONNECTS]; struct sockaddr conn_addr[MAX_CONNECTS]; -int conn_addrlen[MAX_CONNECTS]; +socklen_t conn_addrlen[MAX_CONNECTS]; char conn_monmode[MAX_CONNECTS]; int conn_num = 0; int highest_sock_fd; @@ -215,7 +215,7 @@ int main(int argc, char *argv[]) fd_set monavail; int monrx_fd, monrxtx_fd; struct sockaddr monfrom; - int monfromlen; + socklen_t monfromlen; fd_set conn_request; struct timeval tv; char buf[500]; -- cgit v1.2.3