From: John Kohl Date: Mon, 23 Apr 1990 16:55:58 +0000 (+0000) Subject: add libos-proto X-Git-Tag: krb5-1.0-alpha2~837 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=334dc61774d759ab94d7e3ba55d61ee8da920dfe;p=krb5.git add libos-proto remove unused optind; add void to main() git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@558 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kdc/main.c b/src/kdc/main.c index 1aa484768..5d4ce6393 100644 --- a/src/kdc/main.c +++ b/src/kdc/main.c @@ -34,6 +34,7 @@ static char rcsid_main_c[] = #include #include #include +#include #include #include "kdc_util.h" @@ -125,7 +126,6 @@ char **argv; char lrealm[BUFSIZ]; krb5_error_code retval; - extern int optind; extern char *optarg; while (c = getopt(argc, argv, "r:d:mM:k:")) { @@ -261,9 +261,12 @@ closedown_db() exit */ +/* This void is a bit bogus, but it's necessary to prevent some compilers from + complaining about a no-value return path from a non-void function. */ +void main(argc, argv) int argc; -char **argv; +char *argv[]; { krb5_error_code retval;