From 5a1d7e46f3a85a8232885fdc3c70862d617d6145 Mon Sep 17 00:00:00 2001 From: dholland Date: Sat, 12 Mar 2016 02:26:40 +0000 Subject: [PATCH] Don't cast malloc. --- usr.sbin/sup/source/scan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/sup/source/scan.c b/usr.sbin/sup/source/scan.c index 5d00ee5e4512..07f7ab40dba0 100644 --- a/usr.sbin/sup/source/scan.c +++ b/usr.sbin/sup/source/scan.c @@ -1,4 +1,4 @@ -/* $NetBSD: scan.c,v 1.31 2013/03/08 20:56:44 christos Exp $ */ +/* $NetBSD: scan.c,v 1.32 2016/03/12 02:26:40 dholland Exp $ */ /* * Copyright (c) 1992 Carnegie Mellon University @@ -213,7 +213,7 @@ parserelease(TREELIST ** tlp, char *relname, char *args) int opno; char *nextrel; - tl = (TREELIST *) malloc(sizeof(TREELIST)); + tl = malloc(sizeof(TREELIST)); if ((*tlp = tl) == NULL) goaway("Couldn't allocate TREELIST"); tl->TLnext = NULL;