From 4a1e01c5a541513e93e26815503cc353acec6a24 Mon Sep 17 00:00:00 2001 From: wangyu- Date: Wed, 29 Aug 2018 14:32:45 -0500 Subject: [PATCH] remove register var --- common.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common.cpp b/common.cpp index e5dcf05..55b3cf2 100644 --- a/common.cpp +++ b/common.cpp @@ -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) {