Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/gen remove dubious cast



details:   https://anonhg.NetBSD.org/src/rev/7adc0df31f08
branches:  trunk
changeset: 781573:7adc0df31f08
user:      spz <spz%NetBSD.org@localhost>
date:      Sat Sep 15 19:31:12 2012 +0000

description:
remove dubious cast

diffstat:

 lib/libc/gen/fts.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2759c9172e63 -r 7adc0df31f08 lib/libc/gen/fts.c
--- a/lib/libc/gen/fts.c        Sat Sep 15 18:37:27 2012 +0000
+++ b/lib/libc/gen/fts.c        Sat Sep 15 19:31:12 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fts.c,v 1.44 2012/03/14 00:25:19 christos Exp $        */
+/*     $NetBSD: fts.c,v 1.45 2012/09/15 19:31:12 spz Exp $     */
 
 /*-
  * Copyright (c) 1990, 1993, 1994
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)fts.c      8.6 (Berkeley) 8/14/94";
 #else
-__RCSID("$NetBSD: fts.c,v 1.44 2012/03/14 00:25:19 christos Exp $");
+__RCSID("$NetBSD: fts.c,v 1.45 2012/09/15 19:31:12 spz Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -133,7 +133,7 @@
        }
 
        /* Allocate/initialize the stream */
-       if ((sp = malloc((unsigned int)sizeof(FTS))) == NULL)
+       if ((sp = malloc(sizeof(FTS))) == NULL)
                return (NULL);
        memset(sp, 0, sizeof(FTS));
        sp->fts_compar = compar;



Home | Main Index | Thread Index | Old Index