From b0f86654d3982ec3e78264e7628718e6ae18e12c Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 20 Aug 2015 21:49:30 +0000 Subject: All these files include , so do not need to cast malloc/calloc/realloc* returns. --- lib/libc/yp/ypexclude.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libc/yp') diff --git a/lib/libc/yp/ypexclude.c b/lib/libc/yp/ypexclude.c index 35f88ed533c..8a7ff87e1d3 100644 --- a/lib/libc/yp/ypexclude.c +++ b/lib/libc/yp/ypexclude.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ypexclude.c,v 1.1 2009/06/03 16:02:44 schwarze Exp $ */ +/* $OpenBSD: ypexclude.c,v 1.2 2015/08/20 21:49:29 deraadt Exp $ */ /* * Copyright (c) 2008 Theo de Raadt * Copyright (c) 1995, 1996, Jason Downs. All rights reserved. @@ -40,7 +40,7 @@ __ypexclude_add(struct _ypexclude **headp, const char *name) if (name[0] == '\0') /* skip */ return (0); - new = (struct _ypexclude *)malloc(sizeof(struct _ypexclude)); + new = malloc(sizeof(struct _ypexclude)); if (new == NULL) return (1); new->name = strdup(name); -- cgit v1.2.3