summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2008-01-22 18:52:21 -0600
committerDan McGee <dan@archlinux.org>2008-01-23 20:13:01 -0600
commit69c6d59bb6efc1ae1bcf58d19d049d435dc974b2 (patch)
tree87299f8fa836e1b2375437127e019e59b3243277
parent8240da6cb3ff95ad480efe3e1876104024398fae (diff)
downloadpacman-69c6d59bb6efc1ae1bcf58d19d049d435dc974b2.tar.xz
Fix flip-flopped parameters to CALLOC macro
The mixup causes a fail in the build using --enable-debug on x86_64 but not i686, so none of us caught this right away. Fix it. FS#9297. Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--lib/libalpm/deps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/deps.c b/lib/libalpm/deps.c
index 163b22ba..5c63e9d6 100644
--- a/lib/libalpm/deps.c
+++ b/lib/libalpm/deps.c
@@ -400,7 +400,7 @@ pmdepend_t *_alpm_splitdep(const char *depstring)
}
STRDUP(newstr, depstring, RET_ERR(PM_ERR_MEMORY, NULL));
- CALLOC(depend, sizeof(pmdepend_t), 1, RET_ERR(PM_ERR_MEMORY, NULL));
+ CALLOC(depend, 1, sizeof(pmdepend_t), RET_ERR(PM_ERR_MEMORY, NULL));
/* Find a version comparator if one exists. If it does, set the type and
* increment the ptr accordingly so we can copy the right strings. */
@@ -445,7 +445,7 @@ pmdepend_t *_alpm_splitdep(const char *depstring)
pmdepend_t *_alpm_dep_dup(const pmdepend_t *dep)
{
pmdepend_t *newdep;
- CALLOC(newdep, sizeof(pmdepend_t), 1, RET_ERR(PM_ERR_MEMORY, NULL));
+ CALLOC(newdep, 1, sizeof(pmdepend_t), RET_ERR(PM_ERR_MEMORY, NULL));
STRDUP(newdep->name, dep->name, RET_ERR(PM_ERR_MEMORY, NULL));
STRDUP(newdep->version, dep->version, RET_ERR(PM_ERR_MEMORY, NULL));