diff options
author | Werner Koch <wk@gnupg.org> | 2011-09-23 14:43:58 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2011-09-23 14:43:58 +0200 |
commit | b73ae3ca36547939c9aaf54c0d05fbc93d47c096 (patch) | |
tree | 3e7dfac40a0da7a3a03336713a642ca093d5f6f7 /g13/mount.c | |
parent | Remove support for RISCOS from dotlock.c (diff) | |
download | gnupg2-b73ae3ca36547939c9aaf54c0d05fbc93d47c096.tar.xz gnupg2-b73ae3ca36547939c9aaf54c0d05fbc93d47c096.zip |
Renamed the lock functions.
Also cleaned up the dotlock code for easier readability.
Diffstat (limited to 'g13/mount.c')
-rw-r--r-- | g13/mount.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/g13/mount.c b/g13/mount.c index 387bb6f32..198fde076 100644 --- a/g13/mount.c +++ b/g13/mount.c @@ -273,14 +273,14 @@ g13_mount_container (ctrl_t ctrl, const char *filename, const char *mountpoint) } /* Try to take a lock. */ - lock = create_dotlock (filename); + lock = dotlock_create (filename); if (!lock) { xfree (mountpoint_buffer); return gpg_error_from_syserror (); } - if (make_dotlock (lock, 0)) + if (dotlock_take (lock, 0)) { err = gpg_error_from_syserror (); goto leave; @@ -359,7 +359,7 @@ g13_mount_container (ctrl_t ctrl, const char *filename, const char *mountpoint) destroy_tupledesc (tuples); xfree (keyblob); xfree (enckeyblob); - destroy_dotlock (lock); + dotlock_destroy (lock); xfree (mountpoint_buffer); return err; } |