diff options
author | Marin Ramesa <mpr@hi.t-com.hr> | 2013-11-12 14:12:33 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-11-13 01:31:39 +0100 |
commit | de8345d35743652032f575d4b1afb6d2a5d2781f (patch) | |
tree | fd8b641b0f9b87863591d028e0eb4e39a23814bb | |
parent | 2299788617bd2dca2e2c6f33df04ffa5c4ab8fe4 (diff) |
kern: remove register qualifiers
* kern/strings.c: Remove register qualifiers.
-rw-r--r-- | kern/strings.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kern/strings.c b/kern/strings.c index 3676f98..0752722 100644 --- a/kern/strings.c +++ b/kern/strings.c @@ -55,10 +55,10 @@ int strcmp( - register const char *s1, - register const char *s2) + const char *s1, + const char *s2) { - register unsigned int a, b; + unsigned int a, b; do { a = *s1++; @@ -82,11 +82,11 @@ strcmp( int strncmp( - register const char *s1, - register const char *s2, + const char *s1, + const char *s2, size_t n) { - register unsigned int a, b; + unsigned int a, b; while (n != 0) { a = *s1++; @@ -113,10 +113,10 @@ strncmp( char * strcpy( - register char *to, - register const char *from) + char *to, + const char *from) { - register char *ret = to; + char *ret = to; while ((*to++ = *from++) != '\0') continue; @@ -135,11 +135,11 @@ strcpy( char * strncpy( - register char *to, - register const char *from, - register size_t count) + char *to, + const char *from, + size_t count) { - register char *ret = to; + char *ret = to; while (count != 0) { count--; @@ -163,9 +163,9 @@ strncpy( size_t strlen( - register const char *string) + const char *string) { - register const char *ret = string; + const char *ret = string; while (*string++ != '\0') continue; |