diff options
author | Tor Arntsen <tor@spacetec.no> | 2010-05-27 16:34:57 +0200 |
---|---|---|
committer | Kamil Dudka <kdudka@redhat.com> | 2010-05-27 16:34:57 +0200 |
commit | 97b497a75f3d4ff8e27b279f045f51f59e87ac12 (patch) | |
tree | 7ab180718135158a00265cde9114d307de22b2eb /lib/curl_fnmatch.c | |
parent | d3c813e7266f4761e15ad3e73f2c66eff9a742f9 (diff) | |
download | curl-97b497a75f3d4ff8e27b279f045f51f59e87ac12.tar.gz |
curl_fnmatch: remove use of register keyword
Using the 'register' keyword rarely improves anything with modern
compilers and architectures.
Diffstat (limited to 'lib/curl_fnmatch.c')
-rw-r--r-- | lib/curl_fnmatch.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/curl_fnmatch.c b/lib/curl_fnmatch.c index dc9dd605b..410938a29 100644 --- a/lib/curl_fnmatch.c +++ b/lib/curl_fnmatch.c @@ -67,7 +67,7 @@ static int parsekeyword(unsigned char **pattern, unsigned char *charset) char keyword[KEYLEN] = { 0 }; int found = FALSE; int i; - register unsigned char *p = *pattern; + unsigned char *p = *pattern; for(i = 0; !found; i++) { char c = *p++; if(i >= KEYLEN) @@ -123,7 +123,7 @@ static int setcharset(unsigned char **p, unsigned char *charset) unsigned char rangestart = 0; unsigned char lastchar = 0; bool something_found = FALSE; - register unsigned char c; + unsigned char c; for(;;) { c = **p; switch(state) { @@ -300,8 +300,8 @@ static int setcharset(unsigned char **p, unsigned char *charset) static int loop(const unsigned char *pattern, const unsigned char *string) { loop_state state = CURLFNM_LOOP_DEFAULT; - register unsigned char *p = (unsigned char *)pattern; - register unsigned char *s = (unsigned char *)string; + unsigned char *p = (unsigned char *)pattern; + unsigned char *s = (unsigned char *)string; unsigned char charset[CURLFNM_CHSET_SIZE] = { 0 }; int rc = 0; |