Skip to content

Commit

Permalink
Make vpninfo->quit_reason const to avoid compiler complaints
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 2703136 commit a4f0939
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cstp.c
Expand Up @@ -725,7 +725,7 @@ int cstp_mainloop(struct openconnect_info *vpninfo, int *timeout)
return work_done;
}

int cstp_bye(struct openconnect_info *vpninfo, char *reason)
int cstp_bye(struct openconnect_info *vpninfo, const char *reason)
{
unsigned char *bye_pkt;
int reason_len;
Expand Down
4 changes: 2 additions & 2 deletions openconnect-internal.h
Expand Up @@ -201,7 +201,7 @@ struct openconnect_info {
int deflate;
char *useragent;

char *quit_reason;
const char *quit_reason;

void *cbdata;
openconnect_validate_peer_cert_vfn validate_peer_cert;
Expand Down Expand Up @@ -247,7 +247,7 @@ int connect_dtls_socket(struct openconnect_info *vpninfo);
/* cstp.c */
int make_cstp_connection(struct openconnect_info *vpninfo);
int cstp_mainloop(struct openconnect_info *vpninfo, int *timeout);
int cstp_bye(struct openconnect_info *vpninfo, char *reason);
int cstp_bye(struct openconnect_info *vpninfo, const char *reason);
int cstp_reconnect(struct openconnect_info *vpninfo);

/* ssl.c */
Expand Down

0 comments on commit a4f0939

Please sign in to comment.