summaryrefslogtreecommitdiffstats
path: root/bin/cat/cat.c
diff options
context:
space:
mode:
authormickey <mickey@openbsd.org>1996-12-14 12:17:33 +0000
committermickey <mickey@openbsd.org>1996-12-14 12:17:33 +0000
commit764064c4bd427c8520476ca33857e71dc15ea49c (patch)
tree616fd15d527776c012eb73718e6b36b74b6cfa37 /bin/cat/cat.c
parentUse size_t more places (diff)
downloadwireguard-openbsd-764064c4bd427c8520476ca33857e71dc15ea49c.tar.xz
wireguard-openbsd-764064c4bd427c8520476ca33857e71dc15ea49c.zip
-Wall'ing.
Diffstat (limited to 'bin/cat/cat.c')
-rw-r--r--bin/cat/cat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/cat/cat.c b/bin/cat/cat.c
index d378e3747f5..12452ecf096 100644
--- a/bin/cat/cat.c
+++ b/bin/cat/cat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cat.c,v 1.6 1996/09/28 20:52:50 imp Exp $ */
+/* $OpenBSD: cat.c,v 1.7 1996/12/14 12:17:33 mickey Exp $ */
/* $NetBSD: cat.c,v 1.11 1995/09/07 06:12:54 jtc Exp $ */
/*
@@ -47,7 +47,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)cat.c 8.2 (Berkeley) 4/27/95";
#else
-static char rcsid[] = "$OpenBSD: cat.c,v 1.6 1996/09/28 20:52:50 imp Exp $";
+static char rcsid[] = "$OpenBSD: cat.c,v 1.7 1996/12/14 12:17:33 mickey Exp $";
#endif
#endif /* not lint */
@@ -253,7 +253,7 @@ raw_cat(rfd)
err(1, "%s", filename);
bsize = MAX(sbuf.st_blksize, 1024);
if ((buf = malloc((u_int)bsize)) == NULL)
- err(1, NULL);
+ err(1, "buffer");
}
while ((nr = read(rfd, buf, bsize)) > 0)
for (off = 0; nr; nr -= nw, off += nw)