From 215e222a66b9161c9e585e84e74e8afcf5fc1238 Mon Sep 17 00:00:00 2001 From: mtm Date: Fri, 7 Mar 2003 16:00:55 +0000 Subject: Fix mixed up arguments passed to a locally defined err(int, char *) function. Approved by: markm (mentor) Submitted by: till toenges PR: bin/48963 --- secure/usr.bin/bdes/bdes.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'secure') diff --git a/secure/usr.bin/bdes/bdes.c b/secure/usr.bin/bdes/bdes.c index f2dc827..403a759 100644 --- a/secure/usr.bin/bdes/bdes.c +++ b/secure/usr.bin/bdes/bdes.c @@ -102,22 +102,22 @@ static const char rcsid[] = #ifdef FASTWAY #define DES_KEY(buf) \ if (des_setkey(buf)) \ - err("des_setkey", 0); + err(0, "des_setkey"); #define DES_XFORM(buf) \ if (des_cipher(buf, buf, 0L, (inverse ? -1 : 1))) \ - err("des_cipher", 0); + err(0, "des_cipher"); #else #define DES_KEY(buf) { \ char bits1[64]; /* bits of key */ \ expand(buf, bits1); \ if (setkey(bits1)) \ - err("setkey", 0); \ + err(0, "setkey"); \ } #define DES_XFORM(buf) { \ char bits1[64]; /* bits of message */ \ expand(buf, bits1); \ if (encrypt(bits1, inverse)) \ - err("encrypt", 0); \ + err(0, "encrypt"); \ compress(bits1, buf); \ } #endif -- cgit v1.1