diff --git a/config.c b/config.c index 7eb93a1..f27b295 100644 --- a/config.c +++ b/config.c @@ -403,7 +403,7 @@ int config_load_epg(CONFIG *conf) { extern char *program_id; -static void show_usage() { +static void show_usage(void) { printf("%s\n", program_id); puts(copyright); puts(""); @@ -545,7 +545,7 @@ void config_load(CONFIG *conf, int argc, char **argv) { break; case 'H': case 'h': - show_usage(0); + show_usage(); exit(0); break; } diff --git a/mptsd.c b/mptsd.c index 3bf2a9a..1ed42b4 100644 --- a/mptsd.c +++ b/mptsd.c @@ -134,7 +134,7 @@ void signal_quit(int sig) { keep_going = 0; } -void init_signals() { +void init_signals(void) { signal(SIGCHLD, SIG_IGN); signal(SIGPIPE, SIG_IGN); @@ -157,7 +157,7 @@ int main(int argc, char **argv) { daemonize(config->pidfile); web_server_start(config); log_init(config->logident, config->syslog_active, config->pidfile == NULL, config->loghost, config->logport); - init_signals(config); + init_signals(); LOGf("INIT : %s %s (%s)\n" , server_sig, server_ver, config->ident); diff --git a/network.c b/network.c index 0d7eaa3..aaa9186 100644 --- a/network.c +++ b/network.c @@ -170,7 +170,7 @@ int connect_source(INPUT *r, int retries, int readbuflen, int *http_code) { regcomp(&http_response, "^HTTP/1.[0-1] (([0-9]{3}) .*)", REG_EXTENDED); if (regexec(&http_response,buf,3,res,0) != REG_NOMATCH) { char codestr[4]; - if ((unsigned int)res[1].rm_eo-res[1].rm_so < sizeof(xresponse)) { + if ((unsigned int)res[1].rm_eo-res[1].rm_so < (unsigned int)sizeof(xresponse)) { strncpy(xresponse, &buf[res[1].rm_so], res[1].rm_eo-res[1].rm_so); xresponse[res[1].rm_eo-res[1].rm_so] = '\0'; chomp(xresponse); diff --git a/output_psi.c b/output_psi.c index 9b0e65a..38dc431 100644 --- a/output_psi.c +++ b/output_psi.c @@ -96,7 +96,7 @@ static void output_psi_init_sdt(CONFIG *conf, OUTPUT *o) { } static void output_psi_init_tdt_tot(CONFIG *conf, OUTPUT *o) { - conf = conf; // Silence warning + (void)conf; // Silence warning o->pid_tdt_cont = 15; o->tdt = ts_tdt_alloc_init(time(NULL)); o->tot = ts_tot_alloc_init(time(NULL));