Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/alpm.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm/alpm.c')
-rw-r--r--lib/libalpm/alpm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c
index 23528ae4..6b79d4c8 100644
--- a/lib/libalpm/alpm.c
+++ b/lib/libalpm/alpm.c
@@ -68,13 +68,13 @@ int alpm_initialize(char *root)
/* lock db */
if(handle->access == PM_ACCESS_RW) {
- if(_alpm_lckmk(PACLOCK) == -1) {
+ if(_alpm_lckmk(PM_LOCK) == -1) {
FREE(handle);
PM_RET_ERR(PM_ERR_HANDLE_LOCK, -1);
}
}
- strncpy(str, (root) ? root : PACROOT, PATH_MAX);
+ strncpy(str, (root) ? root : PM_ROOT, PATH_MAX);
/* add a trailing '/' if there isn't one */
if(str[strlen(str)-1] != '/') {
strcat(str, "/");
@@ -92,9 +92,9 @@ int alpm_release()
/* unlock db */
if(handle->access == PM_ACCESS_RW) {
- if(_alpm_lckrm(PACLOCK)) {
- _alpm_log(PM_LOG_WARNING, "could not remove lock file %s", PACLOCK);
- alpm_logaction("warning: could not remove lock file %s", PACLOCK);
+ if(_alpm_lckrm(PM_LOCK)) {
+ _alpm_log(PM_LOG_WARNING, "could not remove lock file %s", PM_LOCK);
+ alpm_logaction("warning: could not remove lock file %s", PM_LOCK);
}
}