Changeset e765670 in mod_gnutls for src


Ignore:
Timestamp:
May 15, 2015, 3:01:35 AM (4 years ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
debian/master, debian/stretch-backports, jessie-backports, master, upstream
Children:
70509f8
Parents:
28f3f4f
Message:

Fix signature of mgs_cache_child_init when building without apr_memcache

If apr_memcache is not enabled, the server and pool structures are
unused and must be declared as such.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_cache.c

    r28f3f4f re765670  
    580580}
    581581
    582 int mgs_cache_child_init(apr_pool_t * p, server_rec * s,
    583         mgs_srvconf_rec * sc) {
     582#if HAVE_APR_MEMCACHE
     583int mgs_cache_child_init(apr_pool_t * p,
     584                         server_rec * s,
     585                         mgs_srvconf_rec * sc)
     586#else
     587int mgs_cache_child_init(apr_pool_t * p __attribute__((unused)),
     588                         server_rec * s __attribute__((unused)),
     589                         mgs_srvconf_rec * sc)
     590#endif
     591{
    584592    if (sc->cache_type == mgs_cache_dbm
    585593            || sc->cache_type == mgs_cache_gdbm) {
Note: See TracChangeset for help on using the changeset viewer.