Fix another const char warning in start_cstp_connection()
authorDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 15 Sep 2011 17:38:19 +0000 (18:38 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 15 Sep 2011 17:38:19 +0000 (18:38 +0100)
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
cstp.c

diff --git a/cstp.c b/cstp.c
index fea0086..b06f2af 100644 (file)
--- a/cstp.c
+++ b/cstp.c
@@ -148,7 +148,7 @@ static int start_cstp_connection(struct openconnect_info *vpninfo)
        if (strncmp(buf, "HTTP/1.1 200 ", 13)) {
                if (!strncmp(buf, "HTTP/1.1 503 ", 13)) {
                        /* "Service Unavailable. Why? */
-                       char *reason = "<unknown>";
+                       const char *reason = "<unknown>";
                        while ((i = openconnect_SSL_gets(vpninfo->https_ssl, buf, sizeof(buf)))) {
                                if (!strncmp(buf, "X-Reason: ", 10)) {
                                        reason = buf + 10;