aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-12-14 11:45:14 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-12-14 11:45:14 +0000
commit18f58c437f2607feac4e3c107e90f86691ac5d0a (patch)
tree8f553caa8ab4e06c1ff876bd865c6d854f1c0e2a
parent2924dd6703eeb1fe72dd7788eabdcc5e65189d8b (diff)
ntlm: Remove unnecessary casts in readshort_le()
I don't think both of my fix ups from yesterday were needed to fix the compilation warning, so remove the one that I think is unnecessary and let the next Android autobuild prove/disprove it.
-rw-r--r--lib/curl_ntlm_msgs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/curl_ntlm_msgs.c b/lib/curl_ntlm_msgs.c
index 0998cb44c..d99a70f49 100644
--- a/lib/curl_ntlm_msgs.c
+++ b/lib/curl_ntlm_msgs.c
@@ -166,8 +166,8 @@ static unsigned int readint_le(unsigned char *buf)
*/
static unsigned short readshort_le(unsigned char *buf)
{
- return (unsigned short)((unsigned short)((unsigned short)buf[0]) |
- (unsigned short)((unsigned short)buf[1] << 8));
+ return (unsigned short)(((unsigned short)buf[0]) |
+ ((unsigned short)buf[1] << 8));
}
/*