diff options
Diffstat (limited to 'lib/libc/regex/grot/main.c')
-rw-r--r-- | lib/libc/regex/grot/main.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/libc/regex/grot/main.c b/lib/libc/regex/grot/main.c index c0a73dc..cb56e48 100644 --- a/lib/libc/regex/grot/main.c +++ b/lib/libc/regex/grot/main.c @@ -37,7 +37,7 @@ char *argv[]; size_t len; int c; int errflg = 0; - register int i; + int i; extern int optind; extern char *optarg; @@ -220,7 +220,7 @@ int opts; /* may not match f1 */ int err; int len; char *type = (opts & REG_EXTENDED) ? "ERE" : "BRE"; - register int i; + int i; char *grump; char f0copy[1000]; char f2copy[1000]; @@ -317,9 +317,9 @@ options(type, s) int type; /* 'c' compile, 'e' exec */ char *s; { - register char *p; - register int o = (type == 'c') ? copts : eopts; - register char *legal = (type == 'c') ? "bisnmp" : "^$#tl"; + char *p; + int o = (type == 'c') ? copts : eopts; + char *legal = (type == 'c') ? "bisnmp" : "^$#tl"; for (p = s; *p != '\0'; p++) if (strchr(legal, *p) != NULL) @@ -379,11 +379,11 @@ char *s; /* - fixstr - transform magic characters in strings - == void fixstr(register char *p); + == void fixstr(char *p); */ void fixstr(p) -register char *p; +char *p; { if (p == NULL) return; @@ -409,11 +409,11 @@ char *str; regmatch_t sub; char *should; { - register int len; - register int shlen; - register char *p; + int len; + int shlen; + char *p; static char grump[500]; - register char *at = NULL; + char *at = NULL; if (should != NULL && strcmp(should, "-") == 0) should = NULL; |