* lock_file.c (krb5_lock_file) [POSIX_FILE_LOCKS]: Make static "zero" variable const
authorKen Raeburn <raeburn@mit.edu>
Fri, 12 Apr 2002 08:08:49 +0000 (08:08 +0000)
committerKen Raeburn <raeburn@mit.edu>
Fri, 12 Apr 2002 08:08:49 +0000 (08:08 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14389 dc483132-0cff-0310-8789-dd5450dbe970

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

index 6a5cb19edb71acb2c2174c0462fa8a3e16e04dd0..0c5b1c6a6aec026c94aa2e4f8fd9dc15701303f8 100644 (file)
@@ -1,4 +1,7 @@
-2002-04-12  Ken Raeburn  <raeburn@raeburn.org>
+2002-04-12  Ken Raeburn  <raeburn@mit.edu>
+
+       * lock_file.c (krb5_lock_file) [POSIX_FILE_LOCKS]: Make static
+       "zero" variable const.
 
        * locate_kdc.c (add_addrinfo_to_list) [TEST]: Print out socket
        type before returning.
index 6cd0ddd7d08e9efd92773fba393eb281069a5559..49dcc08dcf8d9f76eff497feec64715ae221132d 100644 (file)
@@ -71,7 +71,7 @@ krb5_lock_file(context, fd, mode)
     krb5_error_code    retval = 0;
 #ifdef POSIX_FILE_LOCKS
     int lock_cmd = F_SETLKW;
-    static struct flock flock_zero;
+    static const struct flock flock_zero;
     struct flock lock_arg;
 
     lock_arg = flock_zero;