diff options
author | markm <markm@FreeBSD.org> | 2002-10-18 16:22:13 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2002-10-18 16:22:13 +0000 |
commit | e01300b36e295a9440c6e3df00c240f06d5800a8 (patch) | |
tree | f9d753955845c163c5eb8f47f956e3771ab236c4 | |
parent | 60f5ae88d2756f1cd3d3ab3bd56ec419a18c9f51 (diff) | |
download | FreeBSD-src-e01300b36e295a9440c6e3df00c240f06d5800a8.zip FreeBSD-src-e01300b36e295a9440c6e3df00c240f06d5800a8.tar.gz |
ISOfy functions, sort headers and mark unused arguments.
-rw-r--r-- | lib/libc/gen/crypt.c | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/lib/libc/gen/crypt.c b/lib/libc/gen/crypt.c index 5c05685..fd952c8 100644 --- a/lib/libc/gen/crypt.c +++ b/lib/libc/gen/crypt.c @@ -37,12 +37,13 @@ #if defined(LIBC_SCCS) && !defined(lint) /* from static char sccsid[] = "@(#)crypt.c 5.11 (Berkeley) 6/25/91"; */ #endif /* LIBC_SCCS and not lint */ + #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); -#include <unistd.h> #include <stdio.h> #include <string.h> +#include <unistd.h> /* * UNIX password, and DES, encryption. @@ -55,8 +56,7 @@ __warn_references(des_setkey, "WARNING! des_setkey(3) not present in the system!"); int -des_setkey(key) - const char *key; +des_setkey(const char *key __unused) { fprintf(stderr, "WARNING! des_setkey(3) not present in the system!\n"); return (0); @@ -66,11 +66,7 @@ __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; - long salt; - int num_iter; +des_cipher(const char *in, char *out, long salt __unused, int num_iter __unused) { fprintf(stderr, "WARNING! des_cipher(3) not present in the system!\n"); bcopy(in, out, 8); @@ -81,8 +77,7 @@ __warn_references(setkey, "WARNING! setkey(3) not present in the system!"); int -setkey(key) - const char *key; +setkey(const char *key __unused) { fprintf(stderr, "WARNING! setkey(3) not present in the system!\n"); return (0); @@ -92,9 +87,7 @@ __warn_references(encrypt, "WARNING! encrypt(3) not present in the system!"); int -encrypt(block, flag) - char *block; - int flag; +encrypt(char *block __unused, int flag __unused) { fprintf(stderr, "WARNING! encrypt(3) not present in the system!\n"); return (0); |