Skip to content

Commit

Permalink
Fix another const char warning in start_cstp_connection()
Browse files Browse the repository at this point in the history
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Sep 15, 2011
1 parent a4f0939 commit 6583143
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cstp.c
Expand Up @@ -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;
Expand Down

0 comments on commit 6583143

Please sign in to comment.