[libsoup] soup-auth-ntlm: get rid of unused variable warning
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] soup-auth-ntlm: get rid of unused variable warning
- Date: Tue, 9 Apr 2019 08:13:57 +0000 (UTC)
commit b51e062c5c95e732e9a6c6187eaac6742c129448
Author: Claudio Saavedra <csaavedra igalia com>
Date: Tue Apr 9 11:12:56 2019 +0300
soup-auth-ntlm: get rid of unused variable warning
libsoup/soup-auth-ntlm.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/libsoup/soup-auth-ntlm.c b/libsoup/soup-auth-ntlm.c
index a1103697..7c6a4b0e 100644
--- a/libsoup/soup-auth-ntlm.c
+++ b/libsoup/soup-auth-ntlm.c
@@ -812,8 +812,6 @@ calc_hmac_md5 (unsigned char *hmac, const guchar *key, gsize key_sz, const gucha
hex_pos = hmac_hex;
for (count = 0; count < HMAC_MD5_LENGTH; count++)
{
- unsigned int tmp_hmac;
-
/* The 'hh' sscanf format modifier is C99, so we enable it on
* non-Windows or if __USE_MINGW_ANSI_STDIO is enabled or`
* if we are building on Visual Studio 2015 or later
@@ -821,6 +819,7 @@ calc_hmac_md5 (unsigned char *hmac, const guchar *key, gsize key_sz, const gucha
#if !defined (G_OS_WIN32) || (__USE_MINGW_ANSI_STDIO == 1) || (_MSC_VER >= 1900)
sscanf(hex_pos, "%2hhx", &hmac[count]);
#else
+ unsigned int tmp_hmac;
sscanf(hex_pos, "%2x", &tmp_hmac);
hmac[count] = (guint8)tmp_hmac;
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]