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 <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer
2011-10-19 23:31:56 +02:00
parent 44bc9605d6
commit 7cc6305588
20 changed files with 470 additions and 492 deletions

View File

@@ -282,7 +282,7 @@ updatestring (WINDOW *win, char **str, int x, int y)
EXIT_IF (len + 1 > BUFSIZ, _("Internal error: line too long"));
buf = mem_malloc (BUFSIZ);
(void)memcpy (buf, *str, len + 1);
memcpy (buf, *str, len + 1);
ret = getstring (win, buf, BUFSIZ, x, y);
@@ -291,7 +291,7 @@ updatestring (WINDOW *win, char **str, int x, int y)
len = strlen (buf);
*str = mem_realloc (*str, len + 1, 1);
EXIT_IF (*str == NULL, _("out of memory"));
(void)memcpy (*str, buf, len + 1);
memcpy (*str, buf, len + 1);
}
mem_free (buf);