git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
refactor: use a more decent physical memory map
[lunaix-os.git]
/
lunaix-os
/
libs
/
crc.c
diff --git
a/lunaix-os/libs/crc.c
b/lunaix-os/libs/crc.c
index 75359d4a4c22b8ac8bd0b6e83fa33b4e8157953b..06ebbac682cb3ce2f6cdbff450be036abc8b0904 100644
(file)
--- a/
lunaix-os/libs/crc.c
+++ b/
lunaix-os/libs/crc.c
@@
-57,8
+57,7
@@
const unsigned int crc32_tab[] = {
unsigned int
crc32b(unsigned char* data, unsigned int size)
{
- int i = 0;
- unsigned int crc = (unsigned int)-1;
+ unsigned int crc = (unsigned int)-1, i = 0;
while (i < size) {
crc = (crc >> 8) ^ crc32_tab[(crc ^ data[i]) & 0xff];