From b95636c52fbb058a39548bcbc4e86456ebbd7b7b Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 19 Dec 2006 23:36:04 +0000 Subject: remove casts from xmalloc() --- libbb/inet_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbb/inet_common.c') diff --git a/libbb/inet_common.c b/libbb/inet_common.c index d8e00353e..9cdcb11de 100644 --- a/libbb/inet_common.c +++ b/libbb/inet_common.c @@ -158,7 +158,7 @@ int INET_rresolve(char *name, size_t len, struct sockaddr_in *s_in, if ((ent == NULL) && (np == NULL)) { safe_strncpy(name, inet_ntoa(s_in->sin_addr), len); } - pn = (struct addr *) xmalloc(sizeof(struct addr)); + pn = xmalloc(sizeof(struct addr)); pn->addr = *s_in; pn->next = INET_nn; pn->host = host; -- cgit v1.2.3