HV: Remove 'register' prefix for data type

- it is unnecessary.

Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
This commit is contained in:
Yonghua Huang 2018-06-27 22:32:52 +08:00 committed by Xie, nanlin
parent f74675ce21
commit a27bfcefed
2 changed files with 14 additions and 14 deletions

View File

@ -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)

View File

@ -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.