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:
Panu Matilainen 2013-03-11 09:54:12 +02:00
parent 94d741b6b5
commit f7fcb72c07
3 changed files with 3 additions and 3 deletions

View File

@ -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) {

View File

@ -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);

View File

@ -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"));
}