mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
Changed return type of CRC16 to uint16
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
#include "crc32.h"
|
||||
|
||||
unsigned long CRC16(const unsigned char *buf, int size, int key)
|
||||
uint16 CRC16(const unsigned char *buf, int size, int key)
|
||||
{
|
||||
// This is computed as the lowest 16 bits of an Ethernet CRC32 checksum
|
||||
// where the key is prepended to the data in little endian order.
|
||||
|
||||
+2
-1
@@ -1,6 +1,7 @@
|
||||
#ifndef _CRC16_H
|
||||
#define _CRC16_H
|
||||
#include "types.h"
|
||||
|
||||
unsigned long CRC16(const unsigned char *buf, int size, int key);
|
||||
uint16 CRC16(const unsigned char *buf, int size, int key);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user