From ed8e267859a00233fee89a6b1b7fb3d74ceced96 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 28 Sep 2011 15:41:58 +0200 Subject: Add a flag parameter to dotlock_create. This allows us to extend this function in the future. --- common/t-dotlock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/t-dotlock.c') diff --git a/common/t-dotlock.c b/common/t-dotlock.c index a352f6e95..f81b95276 100644 --- a/common/t-dotlock.c +++ b/common/t-dotlock.c @@ -90,7 +90,7 @@ lock_and_unlock (const char *fname) { dotlock_t h; - h = dotlock_create (fname); + h = dotlock_create (fname, 0); if (!h) die ("error creating lock file for `%s': %s", fname, strerror (errno)); inf ("lock created"); @@ -129,7 +129,7 @@ main (int argc, char **argv) sigaction (SIGINT, &nact, NULL); } - dotlock_create (NULL); /* Initialize (optional). */ + dotlock_create (NULL, 0); /* Initialize (optional). */ lock_and_unlock (fname); -- cgit v1.2.3