r4815 - trunk/varnish-cache/bin/varnishd

phk at varnish-cache.org phk at varnish-cache.org
Wed May 19 08:45:39 CEST 2010


Author: phk
Date: 2010-05-19 08:45:39 +0200 (Wed, 19 May 2010)
New Revision: 4815

Modified:
   trunk/varnish-cache/bin/varnishd/common.h
   trunk/varnish-cache/bin/varnishd/varnishd.c
Log:
Expose pick()



Modified: trunk/varnish-cache/bin/varnishd/common.h
===================================================================
--- trunk/varnish-cache/bin/varnishd/common.h	2010-05-18 12:09:48 UTC (rev 4814)
+++ trunk/varnish-cache/bin/varnishd/common.h	2010-05-19 06:45:39 UTC (rev 4815)
@@ -66,8 +66,9 @@
 /* A tiny helper for choosing hash/storage modules */
 struct choice {
 	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)
 

Modified: trunk/varnish-cache/bin/varnishd/varnishd.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/varnishd.c	2010-05-18 12:09:48 UTC (rev 4814)
+++ trunk/varnish-cache/bin/varnishd/varnishd.c	2010-05-19 06:45:39 UTC (rev 4815)
@@ -102,7 +102,7 @@
 
 /*--------------------------------------------------------------------*/
 
-static void *
+void *
 pick(const struct choice *cp, const char *which, const char *kind)
 {
 




More information about the varnish-commit mailing list