diff options
author | 2003-07-28 19:15:34 +0000 | |
---|---|---|
committer | 2003-07-28 19:15:34 +0000 | |
commit | 04e367a696f076f52b51f63ff89d03bf74c24ca4 (patch) | |
tree | 44e52419ff620346bfa36748718df8fd875896e1 /usr.bin/patch/inp.c | |
parent | Don't treat consecutive slashes as path components; matches POSIX (diff) | |
download | wireguard-openbsd-04e367a696f076f52b51f63ff89d03bf74c24ca4.tar.xz wireguard-openbsd-04e367a696f076f52b51f63ff89d03bf74c24ca4.zip |
minor knf and cleanups; otto ok
Diffstat (limited to 'usr.bin/patch/inp.c')
-rw-r--r-- | usr.bin/patch/inp.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.bin/patch/inp.c b/usr.bin/patch/inp.c index 1c071cef62d..9e81fd9b2be 100644 --- a/usr.bin/patch/inp.c +++ b/usr.bin/patch/inp.c @@ -1,7 +1,7 @@ -/* $OpenBSD: inp.c,v 1.19 2003/07/28 18:35:36 otto Exp $ */ +/* $OpenBSD: inp.c,v 1.20 2003/07/28 19:15:34 deraadt Exp $ */ #ifndef lint -static const char rcsid[] = "$OpenBSD: inp.c,v 1.19 2003/07/28 18:35:36 otto Exp $"; +static const char rcsid[] = "$OpenBSD: inp.c,v 1.20 2003/07/28 19:15:34 deraadt Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -85,7 +85,7 @@ plan_a(const char *filename) int ifd, statfailed; char *s, lbuf[MAXLINELEN]; LINENUM iline; - struct stat filestat; + struct stat filestat; if (filename == NULL || *filename == '\0') return FALSE; @@ -220,8 +220,7 @@ plan_a(const char *filename) i_ptr[iline] = i_womp; for (s = i_womp; *s; s++) { if (*s == '\n') - i_ptr[++iline] = s + 1; /* these are NOT null - * terminated */ + i_ptr[++iline] = s + 1; /* these are NOT NUL terminated */ } input_lines = iline - 1; |