summaryrefslogtreecommitdiff
path: root/src/editor.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/editor.c
parentb8d5ca85d9a6e6f42b8dbd6d47cab7bbcffeea90 (diff)
downloadratpoison-e5b64c4f193eb01c81b93ec6e27d6d6bddbfd78b.zip
Get rid of useless casts of xmalloc/realloc return value.
Diffstat (limited to 'src/editor.c')
-rw-r--r--src/editor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/editor.c b/src/editor.c
index 3dabe89..c0d6918 100644
--- a/src/editor.c
+++ b/src/editor.c
@@ -111,7 +111,7 @@ input_line_new (char *prompt, char *preinput, int history_id, completion_fn fn)
/* Allocate some memory to start with */
line->size = strlen (preinput) + 100;
- line->buffer = (char *) xmalloc (line->size);
+ line->buffer = xmalloc (line->size);
/* load in the preinput */
strcpy (line->buffer, preinput);