From: Art Cancro Date: Fri, 3 Sep 2010 21:09:17 +0000 (-0400) Subject: Remove HKEY from call to strncmp so that it compiles. X-Git-Tag: v8.01~753 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=2f53e640f180d82fa5b06d29083df890b807b7ca;p=citadel.git Remove HKEY from call to strncmp so that it compiles. --- diff --git a/webcit/paramhandling.c b/webcit/paramhandling.c index 948265f3a..86d9d1aa4 100644 --- a/webcit/paramhandling.c +++ b/webcit/paramhandling.c @@ -54,7 +54,7 @@ void ParseURLParams(StrBuf *url) continue; } - if (strncmp(u->url_key, HKEY("__")) != 0) + if (strncmp(u->url_key, "__", 2) != 0) { Put(WCC->Hdr->urlstrings, u->url_key, keylen, u, free_url); len = bptr - aptr; @@ -320,7 +320,7 @@ void upload_handler(char *name, char *filename, char *partnum, char *disp, keylen = safestrncpy(u->url_key, name, sizeof(u->url_key)); u->url_data = NewStrBufPlain(content, length); - if (strncmp(u->url_key, HKEY("__")) != 0) + if (strncmp(u->url_key, "__", 2) != 0) { Put(WCC->Hdr->urlstrings, u->url_key, keylen, u, free_url); }