From 2358d709e703c6051bc1d111e445891a9296e4d5 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Thu, 29 Jun 2000 00:47:11 +0000 Subject: [PATCH] * def_realm.c: Add newline at end of file * gmt_mktime.c: Define days_in_month as type int. * locate_kdc.c (krb5_locate_srv_dns): Cleanup unused variables. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12456 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/os/ChangeLog | 8 ++++++++ src/lib/krb5/os/def_realm.c | 2 +- src/lib/krb5/os/gmt_mktime.c | 2 +- src/lib/krb5/os/locate_kdc.c | 3 ++- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog index 33f80180c..c9b4ba24f 100644 --- a/src/lib/krb5/os/ChangeLog +++ b/src/lib/krb5/os/ChangeLog @@ -1,3 +1,11 @@ +2000-06-28 Ezra Peisach + + * def_realm.c: Add newline at end of file. + + * gmt_mktime.c: Define days_in_month as type int. + + * locate_kdc.c (krb5_locate_srv_dns): Cleanup unused variables. + 2000-06-23 Miro Jurisic * init_os_ctx.c (os_get_default_config_files): Return ENOENT when diff --git a/src/lib/krb5/os/def_realm.c b/src/lib/krb5/os/def_realm.c index d9bd017ad..b2a9e1dd1 100644 --- a/src/lib/krb5/os/def_realm.c +++ b/src/lib/krb5/os/def_realm.c @@ -210,4 +210,4 @@ krb5_free_default_realm(context, lrealm) char FAR* lrealm; { free (lrealm); -} \ No newline at end of file +} diff --git a/src/lib/krb5/os/gmt_mktime.c b/src/lib/krb5/os/gmt_mktime.c index b231790ae..1e3eebd1a 100644 --- a/src/lib/krb5/os/gmt_mktime.c +++ b/src/lib/krb5/os/gmt_mktime.c @@ -19,7 +19,7 @@ /* like mktime, this ignores tm_wday and tm_yday. */ /* unlike mktime, this does not set them... it only passes a return value. */ -static const days_in_month[12] = { +static const int days_in_month[12] = { 0, /* jan 31 */ 31, /* feb 28 */ 59, /* mar 31 */ diff --git a/src/lib/krb5/os/locate_kdc.c b/src/lib/krb5/os/locate_kdc.c index 53f36d835..cdadd0c25 100644 --- a/src/lib/krb5/os/locate_kdc.c +++ b/src/lib/krb5/os/locate_kdc.c @@ -272,6 +272,7 @@ krb5_locate_srv_conf(context, realm, name, addr_pp, naddrs, get_masters) if ( !get_masters || ismaster ) { switch (hp->h_addrtype) { + #ifdef HAVE_NETINET_IN_H case AF_INET: for (j=0; hp->h_addr_list[j]; j++) { @@ -350,7 +351,7 @@ krb5_locate_srv_dns(realm, service, protocol, addr_pp, naddrs) struct sockaddr_in *sin = NULL; struct hostent *hp = NULL; int type, class; - int status, priority, weight, size, len, numanswers, numqueries, rdlen; + int priority, weight, size, len, numanswers, numqueries, rdlen; unsigned short port; const int hdrsize = sizeof(HEADER); struct srv_dns_entry { -- 2.26.2