aboutsummaryrefslogtreecommitdiffstats
path: root/common/asshelp.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2011-09-23 12:43:58 +0000
committerWerner Koch <[email protected]>2011-09-23 12:43:58 +0000
commitb73ae3ca36547939c9aaf54c0d05fbc93d47c096 (patch)
tree3e7dfac40a0da7a3a03336713a642ca093d5f6f7 /common/asshelp.c
parentRemove support for RISCOS from dotlock.c (diff)
downloadgnupg-b73ae3ca36547939c9aaf54c0d05fbc93d47c096.tar.gz
gnupg-b73ae3ca36547939c9aaf54c0d05fbc93d47c096.zip
Renamed the lock functions.
Also cleaned up the dotlock code for easier readability.
Diffstat (limited to '')
-rw-r--r--common/asshelp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/asshelp.c b/common/asshelp.c
index c5d5a3359..96d9a242a 100644
--- a/common/asshelp.c
+++ b/common/asshelp.c
@@ -287,14 +287,14 @@ lock_spawning (lock_spawn_t *lock, const char *homedir, const char *name,
if (!fname)
return gpg_error_from_syserror ();
- *lock = create_dotlock (fname);
+ *lock = dotlock_create (fname);
xfree (fname);
if (!*lock)
return gpg_error_from_syserror ();
/* FIXME: We should use a timeout of 5000 here - however
make_dotlock does not yet support values other than -1 and 0. */
- if (make_dotlock (*lock, -1))
+ if (dotlock_take (*lock, -1))
return gpg_error_from_syserror ();
return 0;
@@ -315,7 +315,7 @@ unlock_spawning (lock_spawn_t *lock, const char *name)
CloseHandle (*lock);
#else /*!HAVE_W32_SYSTEM*/
(void)name;
- destroy_dotlock (*lock);
+ dotlock_destroy (*lock);
#endif /*!HAVE_W32_SYSTEM*/
*lock = NULL;
}