diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 1995-10-22 14:37:11 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1995-10-22 14:37:11 +0000 |
commit | 8b10240709e2f0878254162b742c8237b877129e (patch) | |
tree | 021e4f00408640702c262fd5f8dc2c167a2c2c73 /lib/libc/gen/crypt.c | |
parent | 24249ac14fb0c47f9d83ab295f2bf9ebb37016ee (diff) |
Minor cleanup, mostly unused vars and missing #includes.
Notes
Notes:
svn path=/head/; revision=11659
Diffstat (limited to 'lib/libc/gen/crypt.c')
-rw-r--r-- | lib/libc/gen/crypt.c | 19 |
1 files changed, 18 insertions, 1 deletions
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 <unistd.h> #include <stdio.h> +#include <string.h> /* * 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; |