Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/stdio add a cast and remove another.



details:   https://anonhg.NetBSD.org/src/rev/5c4c37ccc52c
branches:  trunk
changeset: 572611:5c4c37ccc52c
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jan 09 05:04:02 2005 +0000

description:
add a cast and remove another.

diffstat:

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

diffs (27 lines):

diff -r 9ce607200c11 -r 5c4c37ccc52c lib/libc/stdio/asprintf.c
--- a/lib/libc/stdio/asprintf.c Sun Jan 09 03:48:30 2005 +0000
+++ b/lib/libc/stdio/asprintf.c Sun Jan 09 05:04:02 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: asprintf.c,v 1.12 2003/01/18 11:29:50 thorpej Exp $    */
+/*     $NetBSD: asprintf.c,v 1.13 2005/01/09 05:04:02 christos Exp $   */
 
 /*
  * Copyright (c) 1997 Todd C. Miller <Todd.Miller%courtesan.com@localhost>
@@ -29,7 +29,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: asprintf.c,v 1.12 2003/01/18 11:29:50 thorpej Exp $");
+__RCSID("$NetBSD: asprintf.c,v 1.13 2005/01/09 05:04:02 christos Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
@@ -60,7 +60,7 @@
        _FILEEXT_SETUP(&f, &fext);
        f._file = -1;
        f._flags = __SWR | __SSTR | __SALC;
-       f._bf._base = f._p = (unsigned char *)malloc(128);
+       f._bf._base = f._p = malloc((size_t)128);
        if (f._bf._base == NULL)
                goto err;
        f._bf._size = f._w = 127;               /* Leave room for the NUL */



Home | Main Index | Thread Index | Old Index