diff options
author | Gerrit Pape <pape@smarden.org> | 2007-09-13 13:25:27 +0000 |
---|---|---|
committer | Gerrit Pape <pape@smarden.org> | 2007-09-13 13:38:16 +0000 |
commit | c826ec66accb8090816b11cf8168bb46c4c6358e (patch) | |
tree | 271fc000ee6aaf0fb0ef0d6cdfcf6841ed25af06 /src/pmatch.c | |
parent | 6ea9716f1fc13a976aad8af0ed3138c9bc6333d5 (diff) | |
download | runit-c826ec66accb8090816b11cf8168bb46c4c6358e.tar.gz runit-c826ec66accb8090816b11cf8168bb46c4c6358e.tar.xz runit-c826ec66accb8090816b11cf8168bb46c4c6358e.zip |
s/\t/ /g
Diffstat (limited to 'src/pmatch.c')
-rw-r--r-- | src/pmatch.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/pmatch.c b/src/pmatch.c index a362264..2fc9a53 100644 --- a/src/pmatch.c +++ b/src/pmatch.c @@ -7,24 +7,24 @@ int pmatch(const char *p, const char *s, unsigned int len) { case '*': if (! (c =*p)) return(1); for (;;) { - if (! len) return(0); - if (*s == c) break; - ++s; --len; + if (! len) return(0); + if (*s == c) break; + ++s; --len; } continue; case '+': if ((c =*p++) != *s) return(0); for (;;) { - if (! len) return(1); - if (*s != c) break; - ++s; --len; + if (! len) return(1); + if (*s != c) break; + ++s; --len; } continue; /* case '?': if (*p == '?') { - if (*s != '?') return(0); - ++p; + if (*s != '?') return(0); + ++p; } ++s; --len; continue; |