From a27bfcefedb52184adb14add9552342d26130ee8 Mon Sep 17 00:00:00 2001 From: Yonghua Huang Date: Wed, 27 Jun 2018 22:32:52 +0800 Subject: [PATCH] HV: Remove 'register' prefix for data type - it is unnecessary. Signed-off-by: Yonghua Huang --- hypervisor/include/lib/rtl.h | 4 ++-- hypervisor/lib/string.c | 24 ++++++++++++------------ 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/hypervisor/include/lib/rtl.h b/hypervisor/include/lib/rtl.h index 6292b7740..a140242df 100644 --- a/hypervisor/include/lib/rtl.h +++ b/hypervisor/include/lib/rtl.h @@ -41,8 +41,8 @@ void *memcpy_s(void *d, size_t dmax, const void *s, size_t slen); int udiv64(uint64_t dividend, uint64_t divisor, struct udiv_result *res); int udiv32(uint32_t dividend, uint32_t divisor, struct udiv_result *res); int atoi(const char *str); -long strtol(const char *nptr, char **endptr, register int base); -uint64_t strtoul(const char *nptr, char **endptr, register int base); +long strtol(const char *nptr, char **endptr, int base); +uint64_t strtoul(const char *nptr, char **endptr, int base); extern uint64_t tsc_hz; #define US_TO_TICKS(x) ((x) * tsc_hz / 1000000UL) diff --git a/hypervisor/lib/string.c b/hypervisor/lib/string.c index 226027054..ae305d2a8 100644 --- a/hypervisor/lib/string.c +++ b/hypervisor/lib/string.c @@ -207,13 +207,13 @@ const uint8_t _sch_toupper[256] = { * alphabets and digits are each contiguous. */ long -strtol(const char *nptr, char **endptr, register int base) +strtol(const char *nptr, char **endptr, int base) { - register const char *s = nptr; - register uint64_t acc; - register int c; - register uint64_t cutoff; - register int neg = 0, any, cutlim; + const char *s = nptr; + uint64_t acc; + int c; + uint64_t cutoff; + int neg = 0, any, cutlim; /* * Skip white space and pick up leading +/- sign if any. @@ -290,13 +290,13 @@ strtol(const char *nptr, char **endptr, register int base) * alphabets and digits are each contiguous. */ uint64_t -strtoul(const char *nptr, char **endptr, register int base) +strtoul(const char *nptr, char **endptr, int base) { - register const char *s = nptr; - register uint64_t acc; - register int c; - register uint64_t cutoff; - register int neg = 0, any, cutlim; + const char *s = nptr; + uint64_t acc; + int c; + uint64_t cutoff; + int neg = 0, any, cutlim; /* * See strtol for comments as to the logic used.