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:
authorAurelien Foret <aurelien@archlinux.org>2005-03-16 19:18:09 +0000
committerAurelien Foret <aurelien@archlinux.org>2005-03-16 19:18:09 +0000
commit5faecdb523a8a6d1bff082f55d35d4ada6b9a257 (patch)
tree2484bb1ff18ac374ca695202c0c85fc5ba3041a9 /lib/libalpm/alpm.c
parentba13bc8b7b5be371d796b201b23988fef4d6bc82 (diff)
Renamed PACXXX defines to PM_XXX
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);
}
}