diff options
author | Martin Willi <martin@revosec.ch> | 2011-05-19 14:24:26 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2011-05-19 15:47:40 +0200 |
commit | 513701f41b34bf12fc2ff911ead9a50f2af39826 (patch) | |
tree | 4d2fa237335e50ba64a1492a6d46b5e6694f1d18 /src/libcharon/plugins/eap_mschapv2/eap_mschapv2.c | |
parent | d30df6ff3d13a0a0dc1d4f6271fbdde314acc6a6 (diff) | |
download | strongswan-513701f41b34bf12fc2ff911ead9a50f2af39826.tar.bz2 strongswan-513701f41b34bf12fc2ff911ead9a50f2af39826.tar.xz |
Fix some warnings triggered by gcc 4.6 -Wunused-but-set-variable
Diffstat (limited to 'src/libcharon/plugins/eap_mschapv2/eap_mschapv2.c')
-rw-r--r-- | src/libcharon/plugins/eap_mschapv2/eap_mschapv2.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/libcharon/plugins/eap_mschapv2/eap_mschapv2.c b/src/libcharon/plugins/eap_mschapv2/eap_mschapv2.c index 1dd94f6fb..9dfc69205 100644 --- a/src/libcharon/plugins/eap_mschapv2/eap_mschapv2.c +++ b/src/libcharon/plugins/eap_mschapv2/eap_mschapv2.c @@ -814,7 +814,7 @@ static status_t process_peer_failure(private_eap_mschapv2_t *this, eap_mschapv2_header_t *eap; chunk_t data; char *message, *token, *msg = NULL; - int message_len, error = 0, retriable; + int message_len, error = 0; chunk_t challenge = chunk_empty; data = in->get_data(in); @@ -842,8 +842,7 @@ static status_t process_peer_failure(private_eap_mschapv2_t *this, } else if (strneq(token, "R=", 2)) { - token += 2; - retriable = atoi(token); + /* ignore retriable */ } else if (strneq(token, "C=", 2)) { @@ -860,9 +859,7 @@ static status_t process_peer_failure(private_eap_mschapv2_t *this, } else if (strneq(token, "V=", 2)) { - int version; - token += 2; - version = atoi(token); + /* ignore version */ } else if (strneq(token, "M=", 2)) { |