Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/dload.c
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2011-04-29 21:10:09 +1000
committerDan McGee <dan@archlinux.org>2011-05-04 15:53:49 -0500
commit7680f461575b63b592090dbf76c13aa7040b840b (patch)
treeccb441805c86204e497ae7a89db8cbb8072e66b1 /lib/libalpm/dload.c
parentc4fccfe3e65c17ee5284e10570f9a8fd20e361fa (diff)
Deal with unused function parameters correctly
This started off removing the "(void)foo" hacks to work around unused function parameters and ended up fixing every warning generated by -Wunused-parameter. Dan: rename to UNUSED. Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/dload.c')
-rw-r--r--lib/libalpm/dload.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c
index c27854cf..1395476a 100644
--- a/lib/libalpm/dload.c
+++ b/lib/libalpm/dload.c
@@ -72,22 +72,17 @@ static char *get_fullpath(const char *path, const char *filename,
enum sighandlers { OLD = 0, NEW = 1 };
static int dload_interrupted;
-static void inthandler(int signum)
+static void inthandler(int UNUSED signum)
{
- (void)signum;
dload_interrupted = 1;
}
static int curl_progress(void *file, double dltotal, double dlnow,
- double ultotal, double ulnow)
+ double UNUSED ultotal, double UNUSED ulnow)
{
struct fileinfo *dlfile = (struct fileinfo *)file;
double current_size, total_size;
- /* unused parameters */
- (void)ultotal;
- (void)ulnow;
-
/* SIGINT sent, abort by alerting curl */
if(dload_interrupted) {
return 1;