diff options
Diffstat (limited to 'lib/string.c')
-rw-r--r-- | lib/string.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/string.c b/lib/string.c index 54eb3f81f85e..542829742c85 100644 --- a/lib/string.c +++ b/lib/string.c | |||
@@ -219,7 +219,7 @@ EXPORT_SYMBOL(strlcat); | |||
219 | #undef strcmp | 219 | #undef strcmp |
220 | int strcmp(const char *cs, const char *ct) | 220 | int strcmp(const char *cs, const char *ct) |
221 | { | 221 | { |
222 | register signed char __res; | 222 | signed char __res; |
223 | 223 | ||
224 | while (1) { | 224 | while (1) { |
225 | if ((__res = *cs - *ct++) != 0 || !*cs++) | 225 | if ((__res = *cs - *ct++) != 0 || !*cs++) |
@@ -239,7 +239,7 @@ EXPORT_SYMBOL(strcmp); | |||
239 | */ | 239 | */ |
240 | int strncmp(const char *cs, const char *ct, size_t count) | 240 | int strncmp(const char *cs, const char *ct, size_t count) |
241 | { | 241 | { |
242 | register signed char __res = 0; | 242 | signed char __res = 0; |
243 | 243 | ||
244 | while (count) { | 244 | while (count) { |
245 | if ((__res = *cs - *ct++) != 0 || !*cs++) | 245 | if ((__res = *cs - *ct++) != 0 || !*cs++) |