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/note.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/note.c') diff --git a/src/note.c b/src/note.c index 2fd022a..e5595fc 100644 --- a/src/note.c +++ b/src/note.c @@ -94,7 +94,7 @@ view_note (char *note, char *pager) if (note == NULL) return; - (void)snprintf (fullname, BUFSIZ, "%s%s", path_notes, note); + snprintf (fullname, BUFSIZ, "%s%s", path_notes, note); wins_launch_external (fullname, pager); } -- cgit v1.2.3-54-g00ecf