summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorJérémie Courrèges-Anglas <jca@wxcvbn.org>2014-01-03 22:40:46 +0100
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2014-01-03 23:06:32 +0100
commite5b64c4f193eb01c81b93ec6e27d6d6bddbfd78b (patch)
treeb26feea94df2d060c7151ff5a2fe865b634c974e /src/main.c
parentb8d5ca85d9a6e6f42b8dbd6d47cab7bbcffeea90 (diff)
downloadratpoison-e5b64c4f193eb01c81b93ec6e27d6d6bddbfd78b.zip
Get rid of useless casts of xmalloc/realloc return value.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index f8d3fed..516abd5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -110,7 +110,7 @@ xvsprintf (char *fmt, va_list ap)
/* A reasonable starting value. */
size = strlen (fmt) + 1;
- buffer = (char *)xmalloc (size);
+ buffer = xmalloc (size);
while (1)
{
@@ -148,7 +148,7 @@ xvsprintf (char *fmt, va_list ap)
}
/* Resize the buffer and try again. */
- buffer = (char *)xrealloc (buffer, size);
+ buffer = xrealloc (buffer, size);
}
return xstrdup("<FAILURE>");