From: Ezra Peisach Date: Thu, 7 Jun 2001 21:59:55 +0000 (+0000) Subject: * kerberos_v4.c: Get rid of file wide static krb5_error_code. Cast X-Git-Tag: krb5-1.3-alpha1~1462 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3d0b793ba655c4f9caddbe7aad262d29aeaa09cc;p=krb5.git * kerberos_v4.c: Get rid of file wide static krb5_error_code. Cast argument to sleep to unsigned int. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13300 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kdc/ChangeLog b/src/kdc/ChangeLog index 595c84444..7cd5ad435 100644 --- a/src/kdc/ChangeLog +++ b/src/kdc/ChangeLog @@ -1,3 +1,8 @@ +2001-06-07 Ezra Peisach + + * kerberos_v4.c: Get rid of file wide static krb5_error_code. Cast + argument to sleep to unsigned int. + 2001-06-04 Ezra Peisach * kdc_util.c (add_to_transited): Add braces to provide unambiguous diff --git a/src/kdc/kerberos_v4.c b/src/kdc/kerberos_v4.c index bf9a996ad..caf07fba0 100644 --- a/src/kdc/kerberos_v4.c +++ b/src/kdc/kerberos_v4.c @@ -142,7 +142,6 @@ static void hang(); #include "com_err.h" #include "extern.h" /* to pick up master_princ */ -static krb5_error_code retval; static krb5_data *response; void kerberos_v4 (struct sockaddr_in *, KTEXT); @@ -331,7 +330,7 @@ hang() "Kerberos will wait %d seconds before dying so as not to loop init", (int) pause_int); klog(L_KRB_PERR, buf); - sleep(pause_int); + sleep((unsigned) pause_int); klog(L_KRB_PERR, "Do svedania....\n"); /* exit(1); */ } @@ -424,6 +423,7 @@ kerb_get_principal(name, inst, principal, maxn, more, k5key, kvno, char* text; struct tm *tp; krb5_key_data *pkey; + krb5_error_code retval; *more = 0; if ( maxn > 1) {