From ebae5906535362ad12df1706e3577178e87c2109 Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Wed, 21 Jan 2015 11:54:55 +0000 Subject: [PATCH] Use MODES_NOTUSED for unused args. --- net_io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net_io.c b/net_io.c index 5d4d943..87bae7c 100644 --- a/net_io.c +++ b/net_io.c @@ -706,7 +706,7 @@ char *generateAircraftJson(const char *url_path, int *len) { char *buf = (char *) malloc(buflen), *p = buf, *end = buf+buflen; int first = 1; - (void) url_path; // unused + MODES_NOTUSED(url_path); p += snprintf(p, end-p, "{ \"now\" : %d,\n" @@ -822,7 +822,7 @@ char *generateReceiverJson(const char *url_path, int *len) char *buf = (char *) malloc(1024), *p = buf; int history_size; - (void)url_path; // unused + MODES_NOTUSED(url_path); // work out number of valid history entries if (Modes.json_aircraft_history[HISTORY_SIZE-1].content == NULL)