summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/package.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm/package.c')
-rw-r--r--lib/libalpm/package.c10
1 files changed, 1 insertions, 9 deletions
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);
}