revert init change to flock_zero in krb5_lock_file
authorKen Raeburn <raeburn@mit.edu>
Tue, 3 Sep 2002 21:38:03 +0000 (21:38 +0000)
committerKen Raeburn <raeburn@mit.edu>
Tue, 3 Sep 2002 21:38:03 +0000 (21:38 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14819 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/os/ChangeLog
src/lib/krb5/os/lock_file.c

index 02952e965795ee31f267da5564e65c4c44c0adf1..32ddaef68e0c0f25508b8ed6e83697e79ebc7d9f 100644 (file)
@@ -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.
 
index 32155c47fc6fca5430b2a6ddb00b4df41a389ebe..48af525d6505681b232d775df51914acd030a24f 100644 (file)
@@ -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;