mirror of
https://github.com/wangyu-/udp2raw.git
synced 2025-10-03 04:15:35 +08:00
remove register var
This commit is contained in:
@@ -567,9 +567,9 @@ void setnonblocking(int sock) {
|
||||
Generic checksum calculation function
|
||||
*/
|
||||
unsigned short csum(const unsigned short *ptr,int nbytes) {//works both for big and little endian
|
||||
register long sum;
|
||||
long sum;
|
||||
unsigned short oddbyte;
|
||||
register short answer;
|
||||
short answer;
|
||||
|
||||
sum=0;
|
||||
while(nbytes>1) {
|
||||
|
Reference in New Issue
Block a user