diff options
author | markm <markm@FreeBSD.org> | 1995-09-07 21:39:00 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 1995-09-07 21:39:00 +0000 |
commit | 2539acf77b018acd7416a9857a14c466e55cd7e8 (patch) | |
tree | 96ff3578d62372822240f11a1567e45b880f3910 /eBones/make_keypair/make_keypair.c | |
parent | eed9438eb23b62f78af7685dc226228e2bf5c524 (diff) | |
download | FreeBSD-src-2539acf77b018acd7416a9857a14c466e55cd7e8.zip FreeBSD-src-2539acf77b018acd7416a9857a14c466e55cd7e8.tar.gz |
Major cleanup of eBones code:
- Get all functions prototyped or at least defined before use.
- Make code compile (Mostly) clean with -Wall set
- Start to reduce the degree to which DES aka libdes is built in.
- get all functions to the same uniform standard of definition:
int
foo(a, b)
int a;
int *b;
{
:
}
- fix numerous bugs exposed by above processes.
Note - this replaces the previous work which used an unpopular function
definition style.
Diffstat (limited to 'eBones/make_keypair/make_keypair.c')
-rw-r--r-- | eBones/make_keypair/make_keypair.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/eBones/make_keypair/make_keypair.c b/eBones/make_keypair/make_keypair.c index 5cc1777..deb67ac 100644 --- a/eBones/make_keypair/make_keypair.c +++ b/eBones/make_keypair/make_keypair.c @@ -31,30 +31,34 @@ * SUCH DAMAGE. */ +#if 0 #ifndef lint static char copyright[] = "@(#) Copyright (c) 1988, 1993\n\ The Regents of the University of California. All rights reserved.\n"; -#endif /* not lint */ - -#ifndef lint static char sccsid[] = "@(#)make_keypair.c 8.1 (Berkeley) 6/1/93"; #endif /* not lint */ +#endif #include <sys/types.h> #include <sys/file.h> #include <netinet/in.h> +#include <arpa/inet.h> +#include <unistd.h> +#include <string.h> #include <stdio.h> #include <netdb.h> #include <des.h> -#include <kerberosIV/krb.h> +#include <krb.h> #include "pathnames.h" #include "register_proto.h" -void make_key(), usage(); +void usage(char *name); +void make_key(struct in_addr addr); char * progname; +void main(argc, argv) int argc; char **argv; @@ -76,7 +80,7 @@ main(argc, argv) exit(1); } - for (i = 0; addr = hp->h_addr_list[i]; i++) { + for (i = 0; (addr = hp->h_addr_list[i]); i++) { addr = hp->h_addr_list[i]; bcopy(addr, &sin.sin_addr, hp->h_length); |