Commit 29a1ede1 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Expose pick()



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4815 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent bac69bc5
...@@ -66,8 +66,9 @@ void mgt_child_inherit(int fd, const char *what); ...@@ -66,8 +66,9 @@ void mgt_child_inherit(int fd, const char *what);
/* A tiny helper for choosing hash/storage modules */ /* A tiny helper for choosing hash/storage modules */
struct choice { struct choice {
const char *name; const char *name;
void *ptr; void *ptr; /* XXX: constify */
}; };
void *pick(const struct choice *cp, const char *which, const char *kind);
#define NEEDLESS_RETURN(foo) return (foo) #define NEEDLESS_RETURN(foo) return (foo)
......
...@@ -102,7 +102,7 @@ build_vident(void) ...@@ -102,7 +102,7 @@ build_vident(void)
/*--------------------------------------------------------------------*/ /*--------------------------------------------------------------------*/
static void * void *
pick(const struct choice *cp, const char *which, const char *kind) pick(const struct choice *cp, const char *which, const char *kind)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment