Rename rpmlockAcquire() to rpmlockNewAcquire()
- This is a lock constructor that we might want to keep around, but we'll also need to be able to separate new + acquire steps, so just making room for that...
This commit is contained in:
parent
94d741b6b5
commit
f7fcb72c07
|
@ -97,7 +97,7 @@ static void rpmlock_release(rpmlock lock)
|
|||
|
||||
/* External interface */
|
||||
|
||||
rpmlock rpmlockAcquire(const char *lock_path, const char *descr)
|
||||
rpmlock rpmlockNewAcquire(const char *lock_path, const char *descr)
|
||||
{
|
||||
rpmlock lock = rpmlock_new(lock_path, descr);
|
||||
if (!lock) {
|
||||
|
|
|
@ -16,7 +16,7 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
RPM_GNUC_INTERNAL
|
||||
rpmlock rpmlockAcquire(const char *lock_path, const char *descr);
|
||||
rpmlock rpmlockNewAcquire(const char *lock_path, const char *descr);
|
||||
|
||||
RPM_GNUC_INTERNAL
|
||||
rpmlock rpmlockFree(rpmlock lock);
|
||||
|
|
|
@ -1084,6 +1084,6 @@ rpmlock rpmtsAcquireLock(rpmts ts)
|
|||
(void) rpmioMkpath(dirname(t), 0755, getuid(), getgid());
|
||||
free(t);
|
||||
}
|
||||
return rpmlockAcquire(ts->lockPath, _("transaction"));
|
||||
return rpmlockNewAcquire(ts->lockPath, _("transaction"));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue