aboutsummaryrefslogtreecommitdiffstats
path: root/src/getstring.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2011-10-19 23:31:56 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2011-11-02 18:32:17 +0100
commit7cc6305588acea9c7960abaacf823d62f798f5ba (patch)
tree415648b8c723eba9a34fc3fc76056f798e170477 /src/getstring.c
parent44bc9605d6d3af9162dc917c43b7a466a24a230b (diff)
downloadcalcurse-7cc6305588acea9c7960abaacf823d62f798f5ba.tar.gz
calcurse-7cc6305588acea9c7960abaacf823d62f798f5ba.zip
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>
Diffstat (limited to 'src/getstring.c')
-rw-r--r--src/getstring.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/getstring.c b/src/getstring.c
index 7570474..37d6fdc 100644
--- a/src/getstring.c
+++ b/src/getstring.c
@@ -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);