From 137077f15081248b401c93dcaf3a380ee7b91e30 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 12 Oct 2008 20:23:58 +0000 Subject: [PATCH] fixing warning --- src/daemon/https/lgl/gc-libgcrypt.c | 2 +- src/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 index 2a87d482..a51a7bb4 100644 --- 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 index 08e54742..0b756ea8 100644 --- 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)