summaryrefslogtreecommitdiff
path: root/lib/libc/yp
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-08-20 21:49:30 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-08-20 21:49:30 +0000
commitb0f86654d3982ec3e78264e7628718e6ae18e12c (patch)
treef6f1a43aea77a33e57c4446f7a79e32179fccbb7 /lib/libc/yp
parenta2dd9b690f0078a3e6a1fb76a97c846f4c185a06 (diff)
All these files include <stdlib.h>, so do not need to cast
malloc/calloc/realloc* returns.
Diffstat (limited to 'lib/libc/yp')
-rw-r--r--lib/libc/yp/ypexclude.c4
1 files changed, 2 insertions, 2 deletions
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);