diff options
author | Ken Raeburn <raeburn@mit.edu> | 1999-09-01 21:14:38 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 1999-09-01 21:14:38 +0000 |
commit | fc28f274ceb9a65284879703f3669629183fcc8e (patch) | |
tree | b422c2263290a9a5d4045e7d427885d4f6595910 /src/clients | |
parent | 73fc1f0c58d299a80d9e406d51c0e2a17a9581bd (diff) | |
download | krb5-fc28f274ceb9a65284879703f3669629183fcc8e.tar.gz krb5-fc28f274ceb9a65284879703f3669629183fcc8e.tar.xz krb5-fc28f274ceb9a65284879703f3669629183fcc8e.zip |
fix uninit var; make compile on sunos4. from 1.1 branch
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11771 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/clients')
-rw-r--r-- | src/clients/kinit/ChangeLog | 10 | ||||
-rw-r--r-- | src/clients/kinit/kinit.c | 7 |
2 files changed, 16 insertions, 1 deletions
diff --git a/src/clients/kinit/ChangeLog b/src/clients/kinit/ChangeLog index ae29bc04f2..c7563c71a9 100644 --- a/src/clients/kinit/ChangeLog +++ b/src/clients/kinit/ChangeLog @@ -1,3 +1,13 @@ +1999-08-25 Ken Raeburn <raeburn@mit.edu> + + * kinit.c (optind, optarg) [sun]: Declare on SunOS 4. Maybe + declare unconditionally, in the future. + +1999-08-12 Ken Raeburn <raeburn@mit.edu> + + * kinit.c (main): Initialize cache_name to null, in case it's not + set. + 1999-08-09 Danilo Almeida <dalmeida@mit.edu> * Makefile.in: Use standard windows exe link flags. diff --git a/src/clients/kinit/kinit.c b/src/clients/kinit/kinit.c index c29b26e6c0..6ed1b2f9f6 100644 --- a/src/clients/kinit/kinit.c +++ b/src/clients/kinit/kinit.c @@ -33,6 +33,11 @@ #else #ifdef HAVE_UNISTD_H #include <unistd.h> +#ifdef sun +/* SunOS4 unistd didn't declare these; okay to make unconditional? */ +extern int optind; +extern char *optarg; +#endif /* sun */ #else extern int optind; extern char *optarg; @@ -101,7 +106,7 @@ main(argc, argv) krb5_get_init_creds_opt opts; char *service_name = NULL; krb5_keytab keytab = NULL; - char *cache_name; + char *cache_name = NULL; krb5_ccache ccache = NULL; enum { INIT_PW, INIT_KT, RENEW, VALIDATE} action; int errflg = 0, idx, i; |