From ba128d957e26b51049b75f4c30dfc78308491e7e Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Tue, 3 Sep 2002 21:38:03 +0000 Subject: [PATCH] revert init change to flock_zero in krb5_lock_file git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14819 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/os/ChangeLog | 1 - src/lib/krb5/os/lock_file.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog index 02952e965..32ddaef68 100644 --- a/src/lib/krb5/os/ChangeLog +++ b/src/lib/krb5/os/ChangeLog @@ -14,7 +14,6 @@ * c_ustime.c, timeofday.c: Don't declare errno. * hst_realm.c (krb5_try_realm_txt_rr), locate_kdc.c (krb5_locate_srv_dns_1): Avoid variable name "class". - * lock_file.c (krb5_lock_file): Initialize flock_zero. * sendto_kdc.c (enum conn_states): Define separately from conn_state 'state' field declaration. diff --git a/src/lib/krb5/os/lock_file.c b/src/lib/krb5/os/lock_file.c index 32155c47f..48af525d6 100644 --- a/src/lib/krb5/os/lock_file.c +++ b/src/lib/krb5/os/lock_file.c @@ -68,7 +68,7 @@ krb5_lock_file(krb5_context context, int fd, int mode) krb5_error_code retval = 0; #ifdef POSIX_FILE_LOCKS int lock_cmd = F_SETLKW; - static const struct flock flock_zero = { 0 }; + static const struct flock flock_zero; struct flock lock_arg; lock_arg = flock_zero; -- 2.26.2