index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2008-01-22 18:52:21 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-01-23 20:13:01 -0600 |
commit | 69c6d59bb6efc1ae1bcf58d19d049d435dc974b2 (patch) | |
tree | 87299f8fa836e1b2375437127e019e59b3243277 | |
parent | 8240da6cb3ff95ad480efe3e1876104024398fae (diff) |
-rw-r--r-- | lib/libalpm/deps.c | 4 |
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)); |