From 5b7382a74def644e86f0de667baeb6cead309c2a Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Fri, 12 Apr 2002 08:08:49 +0000 Subject: [PATCH] * 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 --- src/lib/krb5/os/ChangeLog | 5 ++++- src/lib/krb5/os/lock_file.c | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) 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; -- 2.26.2