projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61b9d26
)
-be-fix
author
Christian Grothoff
<christian@grothoff.org>
Mon, 30 Jan 2012 14:49:14 +0000
(14:49 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Mon, 30 Jan 2012 14:49:14 +0000
(14:49 +0000)
src/util/crypto_crc.c
patch
|
blob
|
history
diff --git
a/src/util/crypto_crc.c
b/src/util/crypto_crc.c
index ea419bed89a03bff1da2b185a1608c11f6140786..8bccf6b691625aeaf4709c27f6422ed68939f725 100644
(file)
--- a/
src/util/crypto_crc.c
+++ b/
src/util/crypto_crc.c
@@
-129,10
+129,11
@@
GNUNET_CRYPTO_crc16_step (uint32_t sum, const void *buf, size_t len)
for (; len >= 2; len -= 2)
sum += *(hdr++);
if (len == 1)
- sum +=
*((unsigned char *)
hdr) & ntohs(0xFF00);
+ sum +=
(*
hdr) & ntohs(0xFF00);
return sum;
}
+
/**
* Convert results from GNUNET_CRYPTO_crc16_step to final crc16.
*