Module Name:    src
Committed By:   dholland
Date:           Sat Mar 12 02:26:40 UTC 2016

Modified Files:
        src/usr.sbin/sup/source: scan.c

Log Message:
Don't cast malloc.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/usr.sbin/sup/source/scan.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/sup/source/scan.c
diff -u src/usr.sbin/sup/source/scan.c:1.31 src/usr.sbin/sup/source/scan.c:1.32
--- src/usr.sbin/sup/source/scan.c:1.31	Fri Mar  8 20:56:44 2013
+++ src/usr.sbin/sup/source/scan.c	Sat Mar 12 02:26:40 2016
@@ -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 *reln
 	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;

Reply via email to