From 30fd25bc24f5d2b019933649edb57faa586dd181 Mon Sep 17 00:00:00 2001 From: ValdikSS Date: Sat, 20 May 2017 12:25:20 +0300 Subject: [PATCH] Replace char* with const char* where appropriate --- goodbyedpi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/goodbyedpi.c b/goodbyedpi.c index 1c9a07b..9f8775a 100644 --- a/goodbyedpi.c +++ b/goodbyedpi.c @@ -29,13 +29,13 @@ static const char *http_host_find = "\r\nHost: "; static const char *http_host_replace = "\r\nhoSt: "; static const char *location_http = "\r\nLocation: http://"; -static char* dumb_memmem(char* haystack, int hlen, char* needle, int nlen) { +static char* dumb_memmem(const char* haystack, int hlen, const char* needle, int nlen) { // naive implementation if (nlen > hlen) return 0; int i; for (i=0; i