diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-08-20 21:49:30 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-08-20 21:49:30 +0000 |
commit | b0f86654d3982ec3e78264e7628718e6ae18e12c (patch) | |
tree | f6f1a43aea77a33e57c4446f7a79e32179fccbb7 /lib/libc/yp | |
parent | a2dd9b690f0078a3e6a1fb76a97c846f4c185a06 (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.c | 4 |
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); |