summaryrefslogtreecommitdiffstats
path: root/ax25/axspawn.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2009-06-14 16:25:26 +0000
committerRalf Baechle <ralf@linux-mips.org>2009-06-14 16:25:26 +0000
commit49db7b428a4752749fb421bfbe50946cafa2fc3f (patch)
tree66b2225fa378df22ad147c278b9b94110a22c3c2 /ax25/axspawn.c
parenta7c513d8dc2f4dc2f9a7ae91736f2f2870f2c892 (diff)
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.
Diffstat (limited to 'ax25/axspawn.c')
-rw-r--r--ax25/axspawn.c8
1 files changed, 5 insertions, 3 deletions
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;