Package: webfs / 1.21+ds1-12

40_request_c.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
Description: Avoid compiler warnings.
 Mismatching use of 'unsigned char' is causing compiler warnings.
Author: Mats Erik Andersson <mats.andersson@gisladisker.se>
Forwarded: no
Last-Update: 2010-01-26
--- webfs-1.21.orig/request.c	2004-06-10 11:45:50.000000000 +0200
+++ webfs-1.21/request.c	2010-01-26 14:28:19.000000000 +0100
@@ -389,7 +389,9 @@
 	}
     }
 
-    unquote(req->path,req->query,req->uri);
+    unquote((unsigned char *) req->path,
+		    (unsigned char *) req->query,
+		    (unsigned char *) req->uri);
     fixpath(req->path);
     if (debug)
 	fprintf(stderr,"%03d: %s \"%s\" HTTP/%d.%d\n",
@@ -436,7 +438,8 @@
 	    req->if_range = h+10;
 
 	} else if (0 == strncasecmp(h,"Authorization: Basic ",21)) {
-	    decode_base64(req->auth,h+21,sizeof(req->auth)-1);
+	    decode_base64((unsigned char *) req->auth,
+			    (unsigned char *) h+21,sizeof(req->auth)-1);
 	    if (debug)
 		fprintf(stderr,"%03d: auth: %s\n",req->fd,req->auth);