Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/window don't bother casting the return value of malloc.
details: https://anonhg.NetBSD.org/src/rev/158bfe21a7b5
branches: trunk
changeset: 766431:158bfe21a7b5
user: mrg <mrg%NetBSD.org@localhost>
date: Wed Jun 22 06:23:07 2011 +0000
description:
don't bother casting the return value of malloc.
diffstat:
usr.bin/window/string.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r f98f60386611 -r 158bfe21a7b5 usr.bin/window/string.c
--- a/usr.bin/window/string.c Wed Jun 22 06:22:48 2011 +0000
+++ b/usr.bin/window/string.c Wed Jun 22 06:23:07 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: string.c,v 1.10 2009/04/14 08:50:06 lukem Exp $ */
+/* $NetBSD: string.c,v 1.11 2011/06/22 06:23:07 mrg Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)string.c 8.1 (Berkeley) 6/6/93";
#else
-__RCSID("$NetBSD: string.c,v 1.10 2009/04/14 08:50:06 lukem Exp $");
+__RCSID("$NetBSD: string.c,v 1.11 2011/06/22 06:23:07 mrg Exp $");
#endif
#endif /* not lint */
@@ -124,7 +124,7 @@
{
struct string *s;
- s = (struct string *) malloc(l + str_offset);
+ s = malloc(l + str_offset);
if (s == 0)
return 0;
if (str_head.s_forw == 0)
Home |
Main Index |
Thread Index |
Old Index