From c4112da8c3c628570d059679abd5bd4c79286184 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Thu, 11 Aug 2011 08:15:24 -0400 Subject: dload: remove unnecessary cast in alpm_load_payload_free Dan: make it compile, s/load/payload/. Signed-off-by: Dave Reisner Signed-off-by: Dan McGee --- lib/libalpm/dload.c | 10 ++++------ 1 file 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: */ -- cgit v1.2.3-70-g09d2