summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-08-11 08:15:24 -0400
committerDan McGee <dan@archlinux.org>2011-08-11 11:18:00 -0500
commitc4112da8c3c628570d059679abd5bd4c79286184 (patch)
tree23edfe3f914ab43f53a5afd19917a65c3355e274
parent82d45d66ca36f48dd89867e817d198bd9e055829 (diff)
downloadpacman-c4112da8c3c628570d059679abd5bd4c79286184.tar.xz
dload: remove unnecessary cast in alpm_load_payload_free
Dan: make it compile, s/load/payload/. Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--lib/libalpm/dload.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c
index ac47e94a..4fd744ef 100644
--- a/lib/libalpm/dload.c
+++ b/lib/libalpm/dload.c
@@ -490,13 +490,11 @@ char SYMEXPORT *alpm_fetch_pkgurl(alpm_handle_t *handle, const char *url)
}
void _alpm_dload_payload_free(struct dload_payload *payload) {
- struct dload_payload *load = (struct dload_payload *)payload;
+ ASSERT(payload, return);
- ASSERT(load, return);
-
- FREE(load->fileurl);
- FREE(load->cd_filename);
- FREE(load);
+ FREE(payload->fileurl);
+ FREE(payload->cd_filename);
+ FREE(payload);
}
/* vim: set ts=2 sw=2 noet: */