libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 137077f15081248b401c93dcaf3a380ee7b91e30
parent 796d310d532f74661c5b112dbe75ca2e0cf146a8
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun, 12 Oct 2008 20:23:58 +0000

fixing warning

Diffstat:
Msrc/daemon/https/lgl/gc-libgcrypt.c | 2+-
Msrc/daemon/https/lgl/memmem.c | 2--
2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/daemon/https/lgl/gc-libgcrypt.c b/src/daemon/https/lgl/gc-libgcrypt.c @@ -411,7 +411,7 @@ MHD_gc_hash_read (MHD_gc_hash_handle handle) const char *digest; { gcry_md_final (ctx->gch); - digest = gcry_md_read (ctx->gch, 0); + digest = (const char*) gcry_md_read (ctx->gch, 0); } return digest; diff --git a/src/daemon/https/lgl/memmem.c b/src/daemon/https/lgl/memmem.c @@ -26,8 +26,6 @@ # define __builtin_expect(expr, val) (expr) #endif -#undef MHD_memmem - /* Return the first occurrence of NEEDLE in HAYSTACK. */ void * MHD_memmem (haystack, haystack_len, needle, needle_len)