From c6475974b5e99595d4b884612900814d0ec85634 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 5 Aug 2009 00:14:20 +0200 Subject: add const to the key argument for anonymous_search(). Michael --- src/anonymous.c | 2 +- src/anonymous.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/anonymous.c b/src/anonymous.c index 87dfaf5..59d9d4a 100644 --- a/src/anonymous.c +++ b/src/anonymous.c @@ -40,7 +40,7 @@ is_anonymous_enabled (void) * zero if the string was found, zero if it wasn't and negative upon error. */ int -anonymous_search (char *s) +anonymous_search (const char *s) { assert (s != NULL); assert (anonymous_map != NULL); diff --git a/src/anonymous.h b/src/anonymous.h index b6c93be..bd26323 100644 --- a/src/anonymous.h +++ b/src/anonymous.h @@ -22,7 +22,7 @@ #define _TINYPROXY_ANONYMOUS_H_ extern short int is_anonymous_enabled (void); -extern int anonymous_search (char *s); +extern int anonymous_search (const char *s); extern int anonymous_insert (char *s); #endif -- cgit v1.2.3