summaryrefslogtreecommitdiffstats
path: root/source/web_server
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-10-12 06:10:23 +0000
committerAndrew Tridgell <tridge@samba.org>2005-10-12 06:10:23 +0000
commit1ff8a15849323c3d86606193c2587b93efa38cd3 (patch)
treee253592d789c33c12692765fcf249b1094126f6e /source/web_server
parent3612d2056fb3eb8bd95801d58f45dfca51e5f5dc (diff)
downloadsamba-1ff8a15849323c3d86606193c2587b93efa38cd3.tar.gz
samba-1ff8a15849323c3d86606193c2587b93efa38cd3.tar.xz
samba-1ff8a15849323c3d86606193c2587b93efa38cd3.zip
r10913: This patch isn't as big as it looks ...
most of the changes are fixes to make all the ldb code compile without warnings on gcc4. Unfortunately That required a lot of casts :-( I have also added the start of an 'operational' module, which will replace the timestamp module, plus add support for some other operational attributes In ldb_msg_*() I added some new utility functions to make the operational module sane, and remove the 'ldb' argument from the ldb_msg_add_*() functions. That argument was only needed back in the early days of ldb when we didn't use the hierarchical talloc and thus needed a place to get the allocation function from. Now its just a pain to pass around everywhere. Also added a ldb_debug_set() function that calls ldb_debug() plus sets the result using ldb_set_errstring(). That saves on some awkward coding in a few places.
Diffstat (limited to 'source/web_server')
-rw-r--r--source/web_server/web_server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/web_server/web_server.c b/source/web_server/web_server.c
index e85c4f20c79..57bb5c62b17 100644
--- a/source/web_server/web_server.c
+++ b/source/web_server/web_server.c
@@ -84,7 +84,7 @@ static void websrv_recv(struct stream_connection *conn, uint16_t flags)
b = web->input.partial;
while (!web->input.end_of_headers &&
(p=memchr(b.data, '\n', b.length))) {
- const char *line = b.data;
+ const char *line = (const char *)b.data;
*p = 0;
if (p != b.data && p[-1] == '\r') {
p[-1] = 0;