Commit a4f0939b authored by David Woodhouse's avatar David Woodhouse

Make vpninfo->quit_reason const to avoid compiler complaints

Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 27031366
......@@ -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;
......
......@@ -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;
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment