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. --- ax25/axspawn.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'ax25/axspawn.c') diff --git a/ax25/axspawn.c b/ax25/axspawn.c index a1af4c9..0769353 100644 --- a/ax25/axspawn.c +++ b/ax25/axspawn.c @@ -1,6 +1,6 @@ /* * - * $Id: axspawn.c,v 1.20 2009/06/14 13:27:51 ralf Exp $ + * $Id: axspawn.c,v 1.21 2009/06/14 16:25:26 ralf Exp $ * * axspawn.c - run a program from ax25d. * @@ -1046,7 +1046,8 @@ void new_user(char *newuser) char buf[4096]; char subdir[4]; int cnt; - unsigned char *p, *q; + unsigned char *q; + char *p; struct stat fst; int fd_a, fd_b, fd_l; mode_t homedir_mode = S_IRUSR|S_IWUSR|S_IXUSR|S_IXOTH|(secure_home ? 0 : (S_IRGRP|S_IXGRP)); @@ -1343,7 +1344,8 @@ int main(int argc, char **argv) { char call[20], user[20], as_user[20]; char buf[2048]; - int k, cnt, digits, letters, invalid, ssid, ssidcnt, addrlen; + int k, cnt, digits, letters, invalid, ssid, ssidcnt; + socklen_t addrlen; struct timeval tv; pid_t pid = -1; char *p; -- cgit v1.2.3