Make 'print_equals' string const to avoid compiler complaints
authorDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 15 Sep 2011 16:57:57 +0000 (17:57 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 15 Sep 2011 16:57:57 +0000 (17:57 +0100)
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
http.c

diff --git a/http.c b/http.c
index 4802007..0f18410 100644 (file)
--- a/http.c
+++ b/http.c
@@ -149,7 +149,8 @@ static int process_http_response(struct openconnect_info *vpninfo, int *result,
                   webvpn cookie in the verbose debug output */
                if (!strcasecmp(buf, "Set-Cookie")) {
                        char *semicolon = strchr(colon, ';');
-                       char *print_equals, *equals = strchr(colon, '=');
+                       const char *print_equals;
+                       char *equals = strchr(colon, '=');
                        int ret;
 
                        if (semicolon)