svn commit: samba r7179 - in branches/SAMBA_4_0/source/web_server: .

metze at samba.org metze at samba.org
Wed Jun 1 23:18:18 GMT 2005


Author: metze
Date: 2005-06-01 23:18:17 +0000 (Wed, 01 Jun 2005)
New Revision: 7179

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7179

Log:
remove compiler warnings

metze
Modified:
   branches/SAMBA_4_0/source/web_server/http.c


Changeset:
Modified: branches/SAMBA_4_0/source/web_server/http.c
===================================================================
--- branches/SAMBA_4_0/source/web_server/http.c	2005-06-01 23:10:11 UTC (rev 7178)
+++ branches/SAMBA_4_0/source/web_server/http.c	2005-06-01 23:18:17 UTC (rev 7179)
@@ -104,8 +104,7 @@
 	if (s == NULL) return;
 
 	b = web->output.content;
-	web->output.content.data = s;
-	web->output.content.length = strlen(s);
+	web->output.content = data_blob_string_const(s);
 	data_blob_append(web, &web->output.content, b.data, b.length);
 	data_blob_free(&b);
 }
@@ -486,7 +485,7 @@
 static void esp_request(struct esp_state *esp, const char *url)
 {
 	struct websrv_context *web = esp->web;
-	size_t size;
+	ssize_t size;
 	int res;
 	char *emsg = NULL, *buf;
 
@@ -599,7 +598,7 @@
 		} else {
 			len = p - (char *)b.data;
 		}
-		line = talloc_strndup(esp, b.data, len);
+		line = talloc_strndup(esp, (char *)b.data, len);
 		NT_STATUS_HAVE_NO_MEMORY(line);
 				     
 		p = strchr(line,'=');



More information about the samba-cvs mailing list