summaryrefslogtreecommitdiff
path: root/src/list.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-08-18 10:28:21 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-08-18 10:28:21 -0700
commitc2e232e6915356eba3edf2efea99720746694c52 (patch)
tree405691284d85ae87a5261b43c950d26af102d17a /src/list.c
parent58f3c3b8d518786764f45ac2be1f1f0850129125 (diff)
Stop casting return values from malloc & calloc
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/list.c')
-rw-r--r--src/list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/list.c b/src/list.c
index 992721d..b43cd59 100644
--- a/src/list.c
+++ b/src/list.c
@@ -91,7 +91,7 @@ AddToList(name_list **list_head, char *name, char *ptr)
if (!list_head) return; /* ignore empty inserts */
- nptr = (name_list *)malloc(sizeof(name_list));
+ nptr = malloc(sizeof(name_list));
if (nptr == NULL)
{
twmrc_error_prefix();