Package: webfs / 1.21+ds1-12

30_socketinfo.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Description: Silence compiler warnings.
 Declare a local variable to be of type 'socklen_t' instead of 'int'.
 This variable is used in the system call 'getnameinfo()' and in
 similar host information calls.
Author: Mats Erik Andersson <mats.andersson@gisladisker.se>
Forwarded: no
Last-Update: 2010-01-26
--- webfs-1.21.orig/webfsd.c	2004-06-10 11:45:50.000000000 +0200
+++ webfs-1.21/webfsd.c	2010-01-26 13:28:44.000000000 +0100
@@ -373,7 +373,8 @@
 
     struct REQUEST      *req,*prev,*tmp;
     struct timeval      tv;
-    int                 max,length;
+    int                 max;
+    socklen_t           length;
     fd_set              rd,wr;
 
     for (;!termsig;) {
--- webfs-1.21.orig/cgi.c	2004-06-08 14:51:59.000000000 +0200
+++ webfs-1.21/cgi.c	2010-01-26 13:29:23.000000000 +0100
@@ -79,7 +79,8 @@
     struct strlist *env = NULL, *item;
     char host[65],serv[9];
     char filename[1024], *h, *argv[2], envname[128];
-    int pid,p[2],i,length;
+    int pid,p[2],i;
+    socklen_t length;
 
     if (debug)
 	fprintf(stderr,"%03d: is cgi request\n",req->fd);