From: Ken Raeburn Date: Fri, 12 Apr 2002 08:08:49 +0000 (+0000) Subject: * lock_file.c (krb5_lock_file) [POSIX_FILE_LOCKS]: Make static "zero" variable const X-Git-Tag: krb5-1.3-alpha1~771 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5b7382a74def644e86f0de667baeb6cead309c2a;p=krb5.git * lock_file.c (krb5_lock_file) [POSIX_FILE_LOCKS]: Make static "zero" variable const git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14389 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog index 6a5cb19ed..0c5b1c6a6 100644 --- a/src/lib/krb5/os/ChangeLog +++ b/src/lib/krb5/os/ChangeLog @@ -1,4 +1,7 @@ -2002-04-12 Ken Raeburn +2002-04-12 Ken Raeburn + + * 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. diff --git a/src/lib/krb5/os/lock_file.c b/src/lib/krb5/os/lock_file.c index 6cd0ddd7d..49dcc08dc 100644 --- a/src/lib/krb5/os/lock_file.c +++ b/src/lib/krb5/os/lock_file.c @@ -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;