r2039 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Tue Sep 25 12:37:00 CEST 2007
Author: phk
Date: 2007-09-25 12:36:59 +0200 (Tue, 25 Sep 2007)
New Revision: 2039
Modified:
trunk/varnish-cache/bin/varnishd/common.h
trunk/varnish-cache/bin/varnishd/tcp.c
Log:
Constification
Modified: trunk/varnish-cache/bin/varnishd/common.h
===================================================================
--- trunk/varnish-cache/bin/varnishd/common.h 2007-09-25 10:35:44 UTC (rev 2038)
+++ trunk/varnish-cache/bin/varnishd/common.h 2007-09-25 10:36:59 UTC (rev 2039)
@@ -41,6 +41,6 @@
#define TCP_ADDRBUFSIZE 64
#define TCP_PORTBUFSIZE 16
-void TCP_name(struct sockaddr *addr, unsigned l, char *abuf, unsigned alen, char *pbuf, unsigned plen);
+void TCP_name(const struct sockaddr *addr, unsigned l, char *abuf, unsigned alen, char *pbuf, unsigned plen);
void TCP_myname(int sock, char *abuf, unsigned alen, char *pbuf, unsigned plen);
int TCP_filter_http(int sock);
Modified: trunk/varnish-cache/bin/varnishd/tcp.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/tcp.c 2007-09-25 10:35:44 UTC (rev 2038)
+++ trunk/varnish-cache/bin/varnishd/tcp.c 2007-09-25 10:36:59 UTC (rev 2039)
@@ -51,7 +51,7 @@
/*--------------------------------------------------------------------*/
void
-TCP_name(struct sockaddr *addr, unsigned l, char *abuf, unsigned alen, char *pbuf, unsigned plen)
+TCP_name(const struct sockaddr *addr, unsigned l, char *abuf, unsigned alen, char *pbuf, unsigned plen)
{
int i;
More information about the varnish-commit
mailing list