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/kinit/kinit.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/kinit/kinit.c')
-rw-r--r-- | eBones/kinit/kinit.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/eBones/kinit/kinit.c b/eBones/kinit/kinit.c index 6cde305..3b47c7c 100644 --- a/eBones/kinit/kinit.c +++ b/eBones/kinit/kinit.c @@ -18,11 +18,15 @@ * $Id: kinit.c,v 1.4 1995/08/03 17:16:00 mark Exp $ */ +#if 0 #ifndef lint static char rcsid[] = "$Id: kinit.c,v 1.4 1995/08/03 17:16:00 mark Exp $"; #endif lint +#endif +#include <unistd.h> +#include <stdlib.h> #include <stdio.h> #include <pwd.h> #include <krb.h> @@ -49,6 +53,8 @@ static char rcsid[] = char *progname; +void usage(void); + void get_input(s, size, stream) char *s; @@ -63,7 +69,9 @@ FILE *stream; *p = '\0'; } +int main(argc, argv) + int argc; char *argv[]; { char aname[ANAME_SZ]; @@ -205,8 +213,10 @@ main(argc, argv) fprintf(stderr, "%s: %s\n", progname, krb_err_txt[k_errno]); exit(1); } + return 0; } +void usage() { fprintf(stderr, "Usage: %s [-irvl] [name]\n", progname); |