Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/menuc don't cast malloc.
details: https://anonhg.NetBSD.org/src/rev/dc1d2099db11
branches: trunk
changeset: 457420:dc1d2099db11
user: christos <christos%NetBSD.org@localhost>
date: Sun Jun 23 22:46:53 2019 +0000
description:
don't cast malloc.
diffstat:
usr.bin/menuc/util.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r e3a3ddfee9b8 -r dc1d2099db11 usr.bin/menuc/util.c
--- a/usr.bin/menuc/util.c Sun Jun 23 22:46:41 2019 +0000
+++ b/usr.bin/menuc/util.c Sun Jun 23 22:46:53 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: util.c,v 1.5 2012/03/06 16:55:18 mbalmer Exp $ */
+/* $NetBSD: util.c,v 1.6 2019/06/23 22:46:53 christos Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -41,7 +41,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: util.c,v 1.5 2012/03/06 16:55:18 mbalmer Exp $");
+__RCSID("$NetBSD: util.c,v 1.6 2019/06/23 22:46:53 christos Exp $");
#endif
#include <stdio.h>
@@ -79,7 +79,7 @@
mc_size = 80;
else
mc_size *= 2;
- t = (char *)malloc(mc_size);
+ t = malloc(mc_size);
if (t == NULL) {
(void)fprintf(stderr, "%s:%d: Malloc error\n",
src_name, line_no);
Home |
Main Index |
Thread Index |
Old Index