From: Ben Laurie Date: Sun, 20 May 2001 11:58:03 +0000 (+0000) Subject: Fix warnings. X-Git-Tag: 2.0.19~207 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6dbc2131e3c51bf7c3328bd8c4bd9025f39ad609;p=apache Fix warnings. PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89173 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/aaa/mod_auth_digest.c b/modules/aaa/mod_auth_digest.c index 2b0e233172..3acd910f4a 100644 --- a/modules/aaa/mod_auth_digest.c +++ b/modules/aaa/mod_auth_digest.c @@ -117,6 +117,10 @@ #include "util_uri.h" #include "util_md5.h" +/* Disable shmem until pools/init gets sorted out - remove next line when fixed */ +#undef APR_HAS_SHARED_MEMORY +#define APR_HAS_SHARED_MEMORY 0 + #if APR_HAS_SHARED_MEMORY #include "apr_shmem.h" #else @@ -124,34 +128,40 @@ typedef void apr_shmem_t; typedef void apr_shm_name_t; -apr_status_t apr_shm_init(apr_shmem_t **m, apr_size_t reqsize, const char *file, apr_pool_t *cont) { +/* +static apr_status_t apr_shm_init(apr_shmem_t **m, apr_size_t reqsize, const char *file, apr_pool_t *cont) { return APR_ENOTIMPL; } -apr_status_t apr_shm_destroy(apr_shmem_t *m) { +*/ +static apr_status_t apr_shm_destroy(apr_shmem_t *m) { return APR_ENOTIMPL; } -void *apr_shm_malloc(apr_shmem_t *c, apr_size_t reqsize) { +static void *apr_shm_malloc(apr_shmem_t *c, apr_size_t reqsize) { return NULL; } -void *apr_shm_calloc(apr_shmem_t *shared, apr_size_t size) { +/* +static void *apr_shm_calloc(apr_shmem_t *shared, apr_size_t size) { return NULL; } -apr_status_t apr_shm_free(apr_shmem_t *shared, void *free) { +*/ +static apr_status_t apr_shm_free(apr_shmem_t *shared, void *free) { return APR_ENOTIMPL; } -apr_status_t apr_shm_name_get(apr_shmem_t *c, apr_shm_name_t **name) { +/* +static apr_status_t apr_shm_name_get(apr_shmem_t *c, apr_shm_name_t **name) { return APR_ENOTIMPL; } -apr_status_t apr_shm_name_set(apr_shmem_t *c, apr_shm_name_t *name) { +static apr_status_t apr_shm_name_set(apr_shmem_t *c, apr_shm_name_t *name) { return APR_ENOTIMPL; } -apr_status_t apr_shm_open(apr_shmem_t *c) { +static apr_status_t apr_shm_open(apr_shmem_t *c) { return APR_ENOTIMPL; } -apr_status_t apr_shm_avail(apr_shmem_t *c, apr_size_t *avail) { +static apr_status_t apr_shm_avail(apr_shmem_t *c, apr_size_t *avail) { return APR_ENOTIMPL; } -#endif /* APR_HAS_SHARED_MEMORY */ +*/ +#endif /* ndef APR_HAS_SHARED_MEMORY */ /* struct to hold the configuration info */ @@ -410,10 +420,6 @@ static void initialize_module(apr_pool_t *p, apr_pool_t *plog, if (call_cnt == 2) initialize_secret(s); -/* Disable shmem until pools/init gets sorted out - remove next line when fixed */ -#undef APR_HAS_SHARED_MEMORY -#define APR_HAS_SHARED_MEMORY 0 - #if APR_HAS_SHARED_MEMORY /* Note: this stuff is currently fixed for the lifetime of the server, * i.e. even across restarts. This means that A) any shmem-size