From b18ecb3e09602da5cd6c7c31928322a6b8e2dba9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Wed, 21 Jan 2004 10:55:54 +0000 Subject: [PATCH] remove #if 0 out file locking code git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13278 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/keytab.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/lib/krb5/keytab.c b/lib/krb5/keytab.c index 2aa4fc8b0..46cdab89c 100644 --- a/lib/krb5/keytab.c +++ b/lib/krb5/keytab.c @@ -389,25 +389,6 @@ krb5_kt_free_entry(krb5_context context, return 0; } -#if 0 -static int -xxxlock(int fd, int write) -{ - if(flock(fd, (write ? LOCK_EX : LOCK_SH) | LOCK_NB) < 0) { - sleep(1); - if(flock(fd, (write ? LOCK_EX : LOCK_SH) | LOCK_NB) < 0) - return -1; - } - return 0; -} - -static void -xxxunlock(int fd) -{ - flock(fd, LOCK_UN); -} -#endif - /* * Set `cursor' to point at the beginning of `id'. * Return 0 or an error.