add const to the key argument for anonymous_search().
Michael
This commit is contained in:
1 parent
caf20d786b
commit
c6475974b5
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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);
|
||||
|
||||
+1
-1
@@ -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
|
||||
Reference in new issue
Block a user