diff options
author | Mark Murray <markm@FreeBSD.org> | 2002-10-18 16:22:13 +0000 |
---|---|---|
committer | Mark Murray <markm@FreeBSD.org> | 2002-10-18 16:22:13 +0000 |
commit | 6b83b5cdb8c56445f71365d861dc4396ff60fa22 (patch) | |
tree | f9d753955845c163c5eb8f47f956e3771ab236c4 /lib/libc/gen/crypt.c | |
parent | 9e542d7dbcead919d45afcea3e45e577800d7164 (diff) |
ISOfy functions, sort headers and mark unused arguments.
Notes
Notes:
svn path=/head/; revision=105405
Diffstat (limited to 'lib/libc/gen/crypt.c')
-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 5c056853e997..fd952c87aab3 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); |