Skip to content

Commit

Permalink
curl_fnmatch: remove use of register keyword
Browse files Browse the repository at this point in the history
Using the 'register' keyword rarely improves anything with modern
compilers and architectures.
  • Loading branch information
Tor Arntsen authored and kdudka committed May 27, 2010
1 parent d3c813e commit 97b497a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/curl_fnmatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 97b497a

Please sign in to comment.