summaryrefslogtreecommitdiffstats
path: root/caesar
diff options
context:
space:
mode:
authorjsm <jsm@NetBSD.org>2000-01-09 17:17:19 +0000
committerjsm <jsm@NetBSD.org>2000-01-09 17:17:19 +0000
commite55a4c69ad6dfa55e6a3262864f6dce13f495ba3 (patch)
treefcc3c3ed9fdd3560794ac0b86a6a63aae5d49e76 /caesar
parente52594208cfeed7af6be03a9000f99c31d0f403d (diff)
downloadbsdgames-darwin-e55a4c69ad6dfa55e6a3262864f6dce13f495ba3.tar.gz
bsdgames-darwin-e55a4c69ad6dfa55e6a3262864f6dce13f495ba3.tar.zst
bsdgames-darwin-e55a4c69ad6dfa55e6a3262864f6dce13f495ba3.zip
Use err(1, NULL) and warn(NULL) for `out of memory' error messages.
Diffstat (limited to 'caesar')
-rw-r--r--caesar/caesar.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/caesar/caesar.c b/caesar/caesar.c
index 8209edde..99bcd7e3 100644
--- a/caesar/caesar.c
+++ b/caesar/caesar.c
@@ -1,4 +1,4 @@
-/* $NetBSD: caesar.c,v 1.9 1999/09/08 21:17:46 jsm Exp $ */
+/* $NetBSD: caesar.c,v 1.10 2000/01/09 17:17:20 jsm Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -51,7 +51,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\
#if 0
static char sccsid[] = "@(#)caesar.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: caesar.c,v 1.9 1999/09/08 21:17:46 jsm Exp $");
+__RCSID("$NetBSD: caesar.c,v 1.10 2000/01/09 17:17:20 jsm Exp $");
#endif
#endif /* not lint */
@@ -100,7 +100,7 @@ main(argc, argv)
printit(argv[1]);
if (!(inbuf = malloc(LINELENGTH)))
- errx(1, "out of memory");
+ err(1, NULL);
/* adjust frequency table to weight low probs REAL low */
for (i = 0; i < 26; ++i)