diff options
author | mtm <mtm@FreeBSD.org> | 2003-03-07 16:00:55 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2003-03-07 16:00:55 +0000 |
commit | 215e222a66b9161c9e585e84e74e8afcf5fc1238 (patch) | |
tree | 35863417fec30db40667cf9e887f6c3bbc2193f3 /secure | |
parent | 2bf537b7eaa766e4d58ead04de1773788828a25f (diff) | |
download | FreeBSD-src-215e222a66b9161c9e585e84e74e8afcf5fc1238.zip FreeBSD-src-215e222a66b9161c9e585e84e74e8afcf5fc1238.tar.gz |
Fix mixed up arguments passed to a locally defined err(int, char *)
function.
Approved by: markm (mentor)
Submitted by: till toenges <tt@mail.isis.de>
PR: bin/48963
Diffstat (limited to 'secure')
-rw-r--r-- | secure/usr.bin/bdes/bdes.c | 8 |
1 files changed, 4 insertions, 4 deletions
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 |