index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2008-05-13 19:03:54 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-05-13 19:03:54 -0500 |
commit | dd98aa8564a21ed43782704bf9feb5b2b114825f (patch) | |
tree | 685c35186dc19109865957abc5f384dd606d3df9 /lib/libalpm/package.c | |
parent | a422f6e39c9c60b89269c2b09e697a9eb142b904 (diff) |
-rw-r--r-- | lib/libalpm/package.c | 10 |
diff --git a/lib/libalpm/package.c b/lib/libalpm/package.c index 86596165..14c1df13 100644 --- a/lib/libalpm/package.c +++ b/lib/libalpm/package.c @@ -680,7 +680,7 @@ int _alpm_versioncmp(const char *a, const char *b) } -pmpkg_t *_alpm_pkg_new(const char *name, const char *version) +pmpkg_t *_alpm_pkg_new(void) { pmpkg_t* pkg; @@ -688,14 +688,6 @@ pmpkg_t *_alpm_pkg_new(const char *name, const char *version) CALLOC(pkg, 1, sizeof(pmpkg_t), RET_ERR(PM_ERR_MEMORY, NULL)); - if(name) { - STRDUP(pkg->name, name, RET_ERR(PM_ERR_MEMORY, pkg)); - } - - if(version) { - STRDUP(pkg->version, version, RET_ERR(PM_ERR_MEMORY, pkg)); - } - return(pkg); } |