From 8b10240709e2f0878254162b742c8237b877129e Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sun, 22 Oct 1995 14:37:11 +0000 Subject: Minor cleanup, mostly unused vars and missing #includes. --- lib/libc/gen/crypt.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'lib/libc/gen/crypt.c') diff --git a/lib/libc/gen/crypt.c b/lib/libc/gen/crypt.c index 1ffb7366a760..c1417b8e4a61 100644 --- a/lib/libc/gen/crypt.c +++ b/lib/libc/gen/crypt.c @@ -36,11 +36,12 @@ #if defined(LIBC_SCCS) && !defined(lint) /* from static char sccsid[] = "@(#)crypt.c 5.11 (Berkeley) 6/25/91"; */ -static char rcsid[] = "$Header: /home/ncvs/src/lib/libc/gen/crypt.c,v 1.2 1994/08/22 20:38:00 csgr Exp $"; +static char rcsid[] = "$Header: /home/ncvs/src/lib/libc/gen/crypt.c,v 1.3 1995/05/30 05:40:10 rgrimes Exp $"; #endif /* LIBC_SCCS and not lint */ #include #include +#include /* * UNIX password, and DES, encryption. @@ -49,6 +50,10 @@ static char rcsid[] = "$Header: /home/ncvs/src/lib/libc/gen/crypt.c,v 1.2 1994/0 * encryption, make sure you've got libcrypt.a around. */ +__warn_references(des_setkey, + "WARNING! des_setkey(3) not present in the system!"); + +int des_setkey(key) register const char *key; { @@ -56,6 +61,10 @@ des_setkey(key) return (0); } +__warn_references(des_cipher, + "WARNING! des_cipher(3) not present in the system!"); + +int des_cipher(in, out, salt, num_iter) const char *in; char *out; @@ -67,6 +76,10 @@ des_cipher(in, out, salt, num_iter) return (0); } +__warn_references(setkey, + "WARNING! setkey(3) not present in the system!"); + +int setkey(key) register const char *key; { @@ -74,6 +87,10 @@ setkey(key) return (0); } +__warn_references(encrypt, + "WARNING! encrypt(3) not present in the system!"); + +int encrypt(block, flag) register char *block; int flag; -- cgit v1.2.3