summaryrefslogtreecommitdiffstats
path: root/wsutil/crc16.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:33 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:33 +0000
commit9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9 (patch)
tree2784370cda9bbf2da9114d70f05399c0b229d28c /wsutil/crc16.c
parentAdding debian version 4.2.6-1. (diff)
downloadwireshark-9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9.tar.xz
wireshark-9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9.zip
Merging upstream version 4.4.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'wsutil/crc16.c')
-rw-r--r--wsutil/crc16.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wsutil/crc16.c b/wsutil/crc16.c
index dfb2e2d6..547206b1 100644
--- a/wsutil/crc16.c
+++ b/wsutil/crc16.c
@@ -375,7 +375,7 @@ static const uint16_t crc16_usb_xorout = 0xFFFF;
static uint16_t crc16_unreflected(const uint8_t *buf, unsigned len,
uint16_t crc_in, const unsigned table[])
{
- /* we use guints, rather than guint16s, as they are likely to be
+ /* we use uints, rather than uint16s, as they are likely to be
faster. We just ignore the top 16 bits and let them do what they want.
*/
unsigned crc16 = (unsigned)crc_in;
@@ -389,7 +389,7 @@ static uint16_t crc16_unreflected(const uint8_t *buf, unsigned len,
static uint16_t crc16_reflected(const uint8_t *buf, unsigned len,
uint16_t crc_in, const unsigned table[])
{
- /* we use guints, rather than guint16s, as they are likely to be
+ /* we use uints, rather than uint16s, as they are likely to be
faster. We just ignore the top 16 bits and let them do what they want.
XXX - does any time saved not zero-extending uint16_t's to 32 bits
into a register outweigh any increased cache footprint from the