Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/sup/source Don't cast malloc.



details:   https://anonhg.NetBSD.org/src/rev/ecf3a53072c5
branches:  trunk
changeset: 344072:ecf3a53072c5
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sat Mar 12 02:26:40 2016 +0000

description:
Don't cast malloc.

diffstat:

 usr.sbin/sup/source/scan.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 92e2673308f9 -r ecf3a53072c5 usr.sbin/sup/source/scan.c
--- a/usr.sbin/sup/source/scan.c        Sat Mar 12 02:17:05 2016 +0000
+++ b/usr.sbin/sup/source/scan.c        Sat Mar 12 02:26:40 2016 +0000
@@ -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 @@
        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;



Home | Main Index | Thread Index | Old Index