From 7cc6305588acea9c7960abaacf823d62f798f5ba Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Wed, 19 Oct 2011 23:31:56 +0200 Subject: Do not cast unused return values to void A small style fix that removes all remaining "(void)" casts. Using these isn't encouraged in GNU coding guidelines and doesn't serve a certain purpose, except for satisfying a few static code analysis tools. We already nuked some of these in previous patches, but this semantic patch should fix what's left: @@ identifier func; @@ - (void)func ( + func ( ...); Long lines were re-formatted manually. Signed-off-by: Lukas Fleischer --- src/vars.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vars.c') diff --git a/src/vars.c b/src/vars.c index 1e2453f..a659336 100644 --- a/src/vars.c +++ b/src/vars.c @@ -129,7 +129,7 @@ vars_init (struct conf *conf) conf->periodic_save = 0; conf->skip_system_dialogs = 0; conf->skip_progress_bar = 0; - (void)strncpy (conf->output_datefmt, "%D", 3); + strncpy (conf->output_datefmt, "%D", 3); conf->input_datefmt = 1; /* Default external editor and pager */ -- cgit v1.2.3-54-g00ecf