aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>1996-09-28 21:19:27 +0000
committerWarner Losh <imp@FreeBSD.org>1996-09-28 21:19:27 +0000
commit8d72a3d7f6c6915d670d098dafeb6bf73f3397ba (patch)
tree7abfc3310d58e8242f325585d8e485daeef6190b /bin
parent7fc738cf77e23076c4449b980b9388a0b48baab5 (diff)
Notes
Diffstat (limited to 'bin')
-rw-r--r--bin/cat/cat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/cat/cat.c b/bin/cat/cat.c
index 276b7879e82d4..1e8be46f4a9bc 100644
--- a/bin/cat/cat.c
+++ b/bin/cat/cat.c
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: cat.c,v 1.2 1994/09/24 02:53:26 davidg Exp $
+ * $Id: cat.c,v 1.3 1995/10/03 12:46:37 bde Exp $
*/
#ifndef lint
@@ -43,7 +43,7 @@ static char copyright[] =
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)cat.c 8.1 (Berkeley) 7/19/93";
+static char sccsid[] = "@(#)cat.c 8.2 (Berkeley) 4/27/95";
#endif /* not lint */
#include <sys/param.h>
@@ -98,7 +98,7 @@ main(argc, argv)
case 'v':
vflag = 1;
break;
- case '?':
+ default:
(void)fprintf(stderr,
"usage: cat [-benstuv] [-] [file ...]\n");
exit(1);
@@ -245,7 +245,7 @@ raw_cat(rfd)
err(1, "%s", filename);
bsize = MAX(sbuf.st_blksize, 1024);
if ((buf = malloc((u_int)bsize)) == NULL)
- err(1, "");
+ err(1, NULL);
}
while ((nr = read(rfd, buf, bsize)) > 0)
for (off = 0; nr; nr -= nw, off += nw)