diff options
author | Charles Longeau <chl@cvs.openbsd.org> | 2009-05-01 10:41:06 +0000 |
---|---|---|
committer | Charles Longeau <chl@cvs.openbsd.org> | 2009-05-01 10:41:06 +0000 |
commit | 1c75dc7baa682c014b50235fe54bee3c70a81fc1 (patch) | |
tree | 15641cdb286db5de3dd7dae0a6fc3676884dd07c /usr.bin | |
parent | 39080a5f70639573ca52b8540e3eacba6ac50eda (diff) |
remove unused function
from tobias@
ok otto@ millert@ gilles@ tobias@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/yacc/main.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/usr.bin/yacc/main.c b/usr.bin/yacc/main.c index ecf997e107b..df4338ba88f 100644 --- a/usr.bin/yacc/main.c +++ b/usr.bin/yacc/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.21 2008/05/17 23:31:52 sobrado Exp $ */ +/* $OpenBSD: main.c,v 1.22 2009/05/01 10:41:05 chl Exp $ */ /* $NetBSD: main.c,v 1.5 1996/03/19 03:21:38 jtc Exp $ */ /* @@ -43,7 +43,7 @@ char copyright[] = #if 0 static char sccsid[] = "@(#)main.c 5.5 (Berkeley) 5/24/93"; #else -static char rcsid[] = "$OpenBSD: main.c,v 1.21 2008/05/17 23:31:52 sobrado Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.22 2009/05/01 10:41:05 chl Exp $"; #endif #endif /* not lint */ @@ -323,22 +323,6 @@ create_file_names(void) } -FILE * -fsopen(char *name, char *mode) -{ - FILE *fp = NULL; - int fd, mod = O_RDONLY; - - if (strchr(mode, 'w')) - mod = O_RDWR; - if ((fd = open(name, mod | O_EXCL|O_CREAT, 0666)) == -1 || - (fp = fdopen(fd, mode)) == NULL) { - if (fd != -1) - close(fd); - } - return (fp); -} - void open_files(void) { |