From d0fcbc41b333df5f4dd12b5a4c401ee4a9caf287 Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 25 Sep 2007 10:36:59 +0000 Subject: [PATCH] Constification git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2039 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/common.h | 2 +- varnish-cache/bin/varnishd/tcp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/varnish-cache/bin/varnishd/common.h b/varnish-cache/bin/varnishd/common.h index a183f7ac..43fd2fbc 100644 --- a/varnish-cache/bin/varnishd/common.h +++ b/varnish-cache/bin/varnishd/common.h @@ -41,6 +41,6 @@ extern struct varnish_stats *VSL_stats; #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); diff --git a/varnish-cache/bin/varnishd/tcp.c b/varnish-cache/bin/varnishd/tcp.c index 7f756b64..a8974116 100644 --- a/varnish-cache/bin/varnishd/tcp.c +++ b/varnish-cache/bin/varnishd/tcp.c @@ -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; -- 2.39.5