Module Name: src Committed By: christos Date: Sun Jun 23 22:46:53 UTC 2019
Modified Files: src/usr.bin/menuc: util.c Log Message: don't cast malloc. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/usr.bin/menuc/util.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.bin/menuc/util.c diff -u src/usr.bin/menuc/util.c:1.5 src/usr.bin/menuc/util.c:1.6 --- src/usr.bin/menuc/util.c:1.5 Tue Mar 6 11:55:18 2012 +++ src/usr.bin/menuc/util.c Sun Jun 23 18:46:53 2019 @@ -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 @@ buff_add_ch(char ch) 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);