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/kdestroy | |
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/kdestroy')
-rw-r--r-- | eBones/kdestroy/Makefile | 8 | ||||
-rw-r--r-- | eBones/kdestroy/kdestroy.c | 7 |
2 files changed, 10 insertions, 5 deletions
diff --git a/eBones/kdestroy/Makefile b/eBones/kdestroy/Makefile index 2a79774..1e4da0a 100644 --- a/eBones/kdestroy/Makefile +++ b/eBones/kdestroy/Makefile @@ -2,10 +2,10 @@ # $Id: Makefile,v 1.3 1995/07/18 16:37:42 mark Exp $ PROG= kdestroy -CFLAGS+=-DKERBEROS -DDEBUG -I${.CURDIR}/../include -DBSD42 -DPADD= ${LIBKRB} ${LIBDES} -LDADD= -L${KRBOBJDIR} -lkrb -L${DESOBJDIR} -ldes +CFLAGS+=-DKERBEROS -DDEBUG -I${.CURDIR}/../include -DBSD42 -Wall +DPADD= ${LIBKRB} +LDADD= -L${KRBOBJDIR} -lkrb -ldes BINDIR= /usr/bin -NOMAN= noman +MAN1= kdestroy.1 .include <bsd.prog.mk> diff --git a/eBones/kdestroy/kdestroy.c b/eBones/kdestroy/kdestroy.c index c64a731..926eea5 100644 --- a/eBones/kdestroy/kdestroy.c +++ b/eBones/kdestroy/kdestroy.c @@ -13,10 +13,12 @@ * $Id: kdestroy.c,v 1.3 1995/07/18 16:37:44 mark Exp $ */ +#if 0 #ifndef lint static char rcsid[] = "$Id: kdestroy.c,v 1.3 1995/07/18 16:37:44 mark Exp $"; #endif lint +#endif #include <stdio.h> #include <krb.h> @@ -27,13 +29,16 @@ static char rcsid[] = static char *pname; -static usage() +static void +usage() { fprintf(stderr, "Usage: %s [-f] [-q]\n", pname); exit(1); } +int main(argc, argv) + int argc; char *argv[]; { int fflag=0, qflag=0, k_errno; |