Skip to content

Commit

Permalink
ntlm: Remove unnecessary casts in readshort_le()
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
captain-caveman2k committed Dec 14, 2014
1 parent 2924dd6 commit 18f58c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/curl_ntlm_msgs.c
Expand Up @@ -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));
}

/*
Expand Down

0 comments on commit 18f58c4

Please sign in to comment.