Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/ypbind Don't cast return value of malloc
details: https://anonhg.NetBSD.org/src/rev/60032f7fe9a3
branches: trunk
changeset: 763655:60032f7fe9a3
user: dholland <dholland%NetBSD.org@localhost>
date: Wed Mar 30 05:24:05 2011 +0000
description:
Don't cast return value of malloc
diffstat:
usr.sbin/ypbind/ypbind.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r ebe46bbff551 -r 60032f7fe9a3 usr.sbin/ypbind/ypbind.c
--- a/usr.sbin/ypbind/ypbind.c Wed Mar 30 05:20:59 2011 +0000
+++ b/usr.sbin/ypbind/ypbind.c Wed Mar 30 05:24:05 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ypbind.c,v 1.62 2011/03/30 05:20:59 dholland Exp $ */
+/* $NetBSD: ypbind.c,v 1.63 2011/03/30 05:24:05 dholland Exp $ */
/*
* Copyright (c) 1992, 1993 Theo de Raadt <deraadt%fsa.ca@localhost>
@@ -28,7 +28,7 @@
#include <sys/cdefs.h>
#ifndef LINT
-__RCSID("$NetBSD: ypbind.c,v 1.62 2011/03/30 05:20:59 dholland Exp $");
+__RCSID("$NetBSD: ypbind.c,v 1.63 2011/03/30 05:24:05 dholland Exp $");
#endif
#include <sys/param.h>
@@ -180,7 +180,7 @@
{
struct _dom_binding *ypdb;
- if ((ypdb = (struct _dom_binding *)malloc(sizeof *ypdb)) == NULL) {
+ if ((ypdb = malloc(sizeof *ypdb)) == NULL) {
yp_log(LOG_ERR, "makebinding");
exit(1);
}
Home |
Main Index |
Thread Index |
Old Index