diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-04-11 07:11:45 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-04-11 07:11:45 +0000 |
commit | 1689893fc119a23437cdf4ee9d2ffdf3b518ea54 (patch) | |
tree | 5e666de90bebd2bcd189362d8eb4ca7096cfadb4 /usr.bin/sed | |
parent | 97b5b2af9ebc987ea6fbbc9bbe9521faf08f100e (diff) |
spacing
Diffstat (limited to 'usr.bin/sed')
-rw-r--r-- | usr.bin/sed/compile.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/sed/compile.c b/usr.bin/sed/compile.c index 7bca0152f39..a47bc3ed09b 100644 --- a/usr.bin/sed/compile.c +++ b/usr.bin/sed/compile.c @@ -1,4 +1,4 @@ -/* $OpenBSD: compile.c,v 1.20 2004/07/10 11:41:26 otto Exp $ */ +/* $OpenBSD: compile.c,v 1.21 2005/04/11 07:11:44 deraadt Exp $ */ /*- * Copyright (c) 1992 Diomidis Spinellis. @@ -35,7 +35,7 @@ #ifndef lint /* from: static char sccsid[] = "@(#)compile.c 8.2 (Berkeley) 4/28/95"; */ -static char *rcsid = "$OpenBSD: compile.c,v 1.20 2004/07/10 11:41:26 otto Exp $"; +static char *rcsid = "$OpenBSD: compile.c,v 1.21 2005/04/11 07:11:44 deraadt Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -262,7 +262,7 @@ nonsel: /* Now parse the command */ cmd->t = duptoeol(p, "w command", NULL); if (aflag) cmd->u.fd = -1; - else if ((cmd->u.fd = open(p, + else if ((cmd->u.fd = open(p, O_WRONLY|O_APPEND|O_CREAT|O_TRUNC, DEFFILEMODE)) == -1) err(FATAL, "%s: %s", p, strerror(errno)); @@ -686,7 +686,7 @@ compile_addr(char *p, struct s_addr *a) a->type = AT_LAST; return (p + 1); /* Line number */ - case '0': case '1': case '2': case '3': case '4': + case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': a->type = AT_LINE; a->u.l = strtoul(p, &end, 10); @@ -808,7 +808,7 @@ findlabel(char *name) return (NULL); } -/* +/* * Warn about any unused labels. As a side effect, release the label hash * table space. */ |