From c2e232e6915356eba3edf2efea99720746694c52 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 18 Aug 2013 10:28:21 -0700 Subject: Stop casting return values from malloc & calloc Signed-off-by: Alan Coopersmith --- src/list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/list.c') 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(); -- cgit v1.2.3