mirror of
https://github.com/wangyu-/udp2raw.git
synced 2025-01-19 14:29:34 +08:00
remove register var
This commit is contained in:
parent
6ccf6ce3dc
commit
4a1e01c5a5
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user