diff options
author | Luca Deri <deri@ntop.org> | 2019-01-17 00:41:05 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2019-01-17 00:41:05 +0100 |
commit | d088a968a97c9c6a70357278c1f7a87567188328 (patch) | |
tree | 9e25c68d82e07cea234abfe49db820b2d21a3c41 /example/ndpi_util.c | |
parent | efef99cbadc8ddd6f6743e04d184fe240d6eb334 (diff) | |
parent | f3b0878a37d252f0a9300eab7a7df28d64146211 (diff) |
Merge branch 'dev' of https://github.com/ntop/nDPI into dev
Diffstat (limited to 'example/ndpi_util.c')
-rw-r--r-- | example/ndpi_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/example/ndpi_util.c b/example/ndpi_util.c index 58dc896b1..3a2a66c97 100644 --- a/example/ndpi_util.c +++ b/example/ndpi_util.c @@ -1044,7 +1044,7 @@ iph_check: static uint32_t crc32_for_byte(uint32_t r) { int j; for(j = 0; j < 8; ++j) - r = (r & 1? 0: (uint32_t)0xEDB88320L) ^ r >> 1; + r = ((r & 1) ? 0 : (uint32_t)0xEDB88320L) ^ r >> 1; return r ^ (uint32_t)0xFF000000L; } |