From a5c21394e3e8827119ab4d6a796a361aa17d8556 Mon Sep 17 00:00:00 2001 From: Mike Makonnen Date: Fri, 7 Mar 2003 16:00:55 +0000 Subject: [PATCH] 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(-) diff --git a/secure/usr.bin/bdes/bdes.c b/secure/usr.bin/bdes/bdes.c index f2dc827266d5..403a759257bd 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