diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-05-11 08:51:21 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-05-11 08:51:21 -0600 |
commit | 1593bc8ff58f1a833872daec312f326b50bffaf5 (patch) | |
tree | 43dc851d981fd518642594c56f46ed1aeb0421ad /apps/netutils/codecs | |
parent | c8991420a07e91cb7113fed84ec0444999f61f8b (diff) | |
download | nuttx-1593bc8ff58f1a833872daec312f326b50bffaf5.tar.gz nuttx-1593bc8ff58f1a833872daec312f326b50bffaf5.tar.bz2 nuttx-1593bc8ff58f1a833872daec312f326b50bffaf5.zip |
More changes for issues reported by CppCheck
Diffstat (limited to 'apps/netutils/codecs')
-rw-r--r-- | apps/netutils/codecs/md5.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/netutils/codecs/md5.c b/apps/netutils/codecs/md5.c index eb564973f..0441f4147 100644 --- a/apps/netutils/codecs/md5.c +++ b/apps/netutils/codecs/md5.c @@ -97,15 +97,15 @@ #ifndef CONFIG_ENDIAN_BIG # define byteReverse(buf, len) #else -static void byteReverse(unsigned char *buf, unsigned longs) +static void byteReverse(FAR unsigned char *buf, unsigned longs) { uint32_t t; do { - t = ((uint32_t)buf[3] << 8) | - ((uint32_t)buf[2]) << 16) | - ((uint32_t)buf[1] << 8) | - (uint32_t)buf[0]; + t = ((uint32_t)buf[3] << 24) | + ((uint32_t)buf[2] << 16) | + ((uint32_t)buf[1] << 8) | + (uint32_t)buf[0]; *(uint32_t*)buf = t; buf += 4; |