mirror of
https://github.com/wangyu-/udp2raw.git
synced 2024-06-28 09:53:42 +00: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…
Reference in New Issue
Block a user