Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/stdlib uintmax_t -> size_t (never called with large...
details: https://anonhg.NetBSD.org/src/rev/5b4d51e3fcdd
branches: trunk
changeset: 778266:5b4d51e3fcdd
user: christos <christos%NetBSD.org@localhost>
date: Wed Mar 21 00:38:06 2012 +0000
description:
uintmax_t -> size_t (never called with larger than size_t)
diffstat:
lib/libc/stdlib/jemalloc.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (43 lines):
diff -r fb15612f505d -r 5b4d51e3fcdd lib/libc/stdlib/jemalloc.c
--- a/lib/libc/stdlib/jemalloc.c Wed Mar 21 00:35:50 2012 +0000
+++ b/lib/libc/stdlib/jemalloc.c Wed Mar 21 00:38:06 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: jemalloc.c,v 1.24 2011/05/18 01:59:39 christos Exp $ */
+/* $NetBSD: jemalloc.c,v 1.25 2012/03/21 00:38:06 christos Exp $ */
/*-
* Copyright (C) 2006,2007 Jason Evans <jasone%FreeBSD.org@localhost>.
@@ -118,7 +118,7 @@
#include <sys/cdefs.h>
/* __FBSDID("$FreeBSD: src/lib/libc/stdlib/malloc.c,v 1.147 2007/06/15 22:00:16 jasone Exp $"); */
-__RCSID("$NetBSD: jemalloc.c,v 1.24 2011/05/18 01:59:39 christos Exp $");
+__RCSID("$NetBSD: jemalloc.c,v 1.25 2012/03/21 00:38:06 christos Exp $");
#ifdef __FreeBSD__
#include "libc_private.h"
@@ -816,7 +816,7 @@
#ifdef MALLOC_STATS
static void malloc_printf(const char *format, ...);
#endif
-static char *umax2s(uintmax_t x, char *s);
+static char *umax2s(size_t x, char *s);
static bool base_pages_alloc(size_t minsize);
static void *base_alloc(size_t size);
static chunk_node_t *base_chunk_node_alloc(void);
@@ -984,13 +984,13 @@
*/
#define UMAX2S_BUFSIZE 21
static char *
-umax2s(uintmax_t x, char *s)
+umax2s(size_t x, char *s)
{
unsigned i;
/* Make sure UMAX2S_BUFSIZE is large enough. */
/* LINTED */
- assert(sizeof(uintmax_t) <= 8);
+ assert(sizeof(size_t) <= 8);
i = UMAX2S_BUFSIZE - 1;
s[i] = '\0';
Home |
Main Index |
Thread Index |
Old Index