diff options
Diffstat (limited to 'usr.bin/sed/main.c')
-rw-r--r-- | usr.bin/sed/main.c | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/usr.bin/sed/main.c b/usr.bin/sed/main.c index 09bc212eba3..214d0a7acca 100644 --- a/usr.bin/sed/main.c +++ b/usr.bin/sed/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.8 2003/06/03 02:56:16 millert Exp $ */ +/* $OpenBSD: main.c,v 1.9 2003/06/10 22:20:50 deraadt Exp $ */ /*- * Copyright (c) 1992 Diomidis Spinellis. @@ -41,7 +41,7 @@ static char copyright[] = #ifndef lint /* from: static char sccsid[] = "@(#)main.c 8.2 (Berkeley) 1/3/94"; */ -static char *rcsid = "$OpenBSD: main.c,v 1.8 2003/06/03 02:56:16 millert Exp $"; +static char *rcsid = "$OpenBSD: main.c,v 1.9 2003/06/10 22:20:50 deraadt Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -102,9 +102,7 @@ static void add_compunit(enum e_cut, char *); static void add_file(char *); int -main(argc, argv) - int argc; - char *argv[]; +main(int argc, char *argv[]) { int c, fflag; @@ -160,9 +158,7 @@ main(argc, argv) * together. Empty strings and files are ignored. */ char * -cu_fgets(buf, n) - char *buf; - int n; +cu_fgets(char *buf, int n) { static enum {ST_EOF, ST_FILE, ST_STRING} state = ST_EOF; static FILE *f; /* Current open file */ @@ -247,9 +243,7 @@ again: * Set len to the length of the line. */ int -mf_fgets(sp, spflag) - SPACE *sp; - enum e_spflag spflag; +mf_fgets(SPACE *sp, enum e_spflag spflag) { static FILE *f; /* Current open file */ size_t len; @@ -321,9 +315,7 @@ mf_fgets(sp, spflag) * Add a compilation unit to the linked list */ static void -add_compunit(type, s) - enum e_cut type; - char *s; +add_compunit(enum e_cut type, char *s) { struct s_compunit *cu; @@ -339,8 +331,7 @@ add_compunit(type, s) * Add a file to the linked list */ static void -add_file(s) - char *s; +add_file(char *s) { struct s_flist *fp; |