=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/sed/main.c,v retrieving revision 1.8 retrieving revision 1.9 diff -c -r1.8 -r1.9 *** src/usr.bin/sed/main.c 2003/06/03 02:56:16 1.8 --- src/usr.bin/sed/main.c 2003/06/10 22:20:50 1.9 *************** *** 1,4 **** ! /* $OpenBSD: main.c,v 1.8 2003/06/03 02:56:16 millert Exp $ */ /*- * Copyright (c) 1992 Diomidis Spinellis. --- 1,4 ---- ! /* $OpenBSD: main.c,v 1.9 2003/06/10 22:20:50 deraadt Exp $ */ /*- * Copyright (c) 1992 Diomidis Spinellis. *************** *** 41,47 **** #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 $"; #endif /* not lint */ #include --- 41,47 ---- #ifndef lint /* from: static char sccsid[] = "@(#)main.c 8.2 (Berkeley) 1/3/94"; */ ! static char *rcsid = "$OpenBSD: main.c,v 1.9 2003/06/10 22:20:50 deraadt Exp $"; #endif /* not lint */ #include *************** *** 102,110 **** static void add_file(char *); int ! main(argc, argv) ! int argc; ! char *argv[]; { int c, fflag; --- 102,108 ---- static void add_file(char *); int ! main(int argc, char *argv[]) { int c, fflag; *************** *** 160,168 **** * together. Empty strings and files are ignored. */ char * ! cu_fgets(buf, n) ! char *buf; ! int n; { static enum {ST_EOF, ST_FILE, ST_STRING} state = ST_EOF; static FILE *f; /* Current open file */ --- 158,164 ---- * together. Empty strings and files are ignored. */ char * ! cu_fgets(char *buf, int n) { static enum {ST_EOF, ST_FILE, ST_STRING} state = ST_EOF; static FILE *f; /* Current open file */ *************** *** 247,255 **** * Set len to the length of the line. */ int ! mf_fgets(sp, spflag) ! SPACE *sp; ! enum e_spflag spflag; { static FILE *f; /* Current open file */ size_t len; --- 243,249 ---- * Set len to the length of the line. */ int ! mf_fgets(SPACE *sp, enum e_spflag spflag) { static FILE *f; /* Current open file */ size_t len; *************** *** 321,329 **** * Add a compilation unit to the linked list */ static void ! add_compunit(type, s) ! enum e_cut type; ! char *s; { struct s_compunit *cu; --- 315,321 ---- * Add a compilation unit to the linked list */ static void ! add_compunit(enum e_cut type, char *s) { struct s_compunit *cu; *************** *** 339,346 **** * Add a file to the linked list */ static void ! add_file(s) ! char *s; { struct s_flist *fp; --- 331,337 ---- * Add a file to the linked list */ static void ! add_file(char *s) { struct s_flist *fp;