diff options
Diffstat (limited to 'usr.bin/sed/process.c')
-rw-r--r-- | usr.bin/sed/process.c | 33 |
1 files changed, 10 insertions, 23 deletions
diff --git a/usr.bin/sed/process.c b/usr.bin/sed/process.c index 93019b41513a..bbad9942ed57 100644 --- a/usr.bin/sed/process.c +++ b/usr.bin/sed/process.c @@ -89,7 +89,7 @@ regmatch_t *match; #define OUT(s) { fwrite(s, sizeof(u_char), psl, stdout); putchar('\n'); } void -process() +process(void) { struct s_command *cp; SPACE tspace; @@ -276,8 +276,7 @@ new: if (!nflag && !pd) * flag to process ranges. Interprets the non-select (``!'') flag. */ static __inline int -applies(cp) - struct s_command *cp; +applies(struct s_command *cp) { int r; @@ -318,8 +317,7 @@ applies(cp) * and then swap them. */ static int -substitute(cp) - struct s_command *cp; +substitute(struct s_command *cp) { SPACE tspace; regex_t *re; @@ -430,7 +428,7 @@ substitute(cp) * therefore it also resets the substitution done (sdone) flag. */ static void -flush_appends() +flush_appends(void) { FILE *f; int count, i; @@ -464,8 +462,7 @@ flush_appends() } static void -lputs(s) - char *s; +lputs(char *s) { int count; const char *escapes; @@ -514,11 +511,8 @@ lputs(s) } static __inline int -regexec_e(preg, string, eflags, nomatch, slen) - regex_t *preg; - const char *string; - int eflags, nomatch; - size_t slen; +regexec_e(regex_t *preg, const char *string, int eflags, int nomatch, + size_t slen) { int eval; @@ -549,9 +543,7 @@ regexec_e(preg, string, eflags, nomatch, slen) * Based on a routine by Henry Spencer */ static void -regsub(sp, string, src) - SPACE *sp; - char *string, *src; +regsub(SPACE *sp, char *string, char *src) { int len, no; char c, *dst; @@ -598,11 +590,7 @@ regsub(sp, string, src) * space as necessary. */ void -cspace(sp, p, len, spflag) - SPACE *sp; - const char *p; - size_t len; - enum e_spflag spflag; +cspace(SPACE *sp, const char *p, size_t len, enum e_spflag spflag) { size_t tlen; @@ -627,8 +615,7 @@ cspace(sp, p, len, spflag) * Close all cached opened files and report any errors */ void -cfclose(cp, end) - struct s_command *cp, *end; +cfclose(struct s_command *cp, struct s_command *end) { for (; cp != end; cp = cp->next) |