Source-Changes-HG archive

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

[src/trunk]: src/lib/libbsdmalloc Make mstats() decl match prototype so this ...



details:   https://anonhg.NetBSD.org/src/rev/d687e7e5a73a
branches:  trunk
changeset: 377341:d687e7e5a73a
user:      simonb <simonb%NetBSD.org@localhost>
date:      Sat Jul 08 04:09:26 2023 +0000

description:
Make mstats() decl match prototype so this compiles with -DMSTATS.

diffstat:

 lib/libbsdmalloc/malloc.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 3b87aa7ea6fe -r d687e7e5a73a lib/libbsdmalloc/malloc.c
--- a/lib/libbsdmalloc/malloc.c Fri Jul 07 20:19:08 2023 +0000
+++ b/lib/libbsdmalloc/malloc.c Sat Jul 08 04:09:26 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: malloc.c,v 1.9 2023/07/05 22:13:20 riastradh Exp $     */
+/*     $NetBSD: malloc.c,v 1.10 2023/07/08 04:09:26 simonb Exp $       */
 
 /*
  * Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)malloc.c   8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: malloc.c,v 1.9 2023/07/05 22:13:20 riastradh Exp $");
+__RCSID("$NetBSD: malloc.c,v 1.10 2023/07/08 04:09:26 simonb Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -467,7 +467,7 @@ findbucket(union overhead *freep, int sr
  * frees for each size category.
  */
 void
-mstats(char *s)
+mstats(const char *s)
 {
        int i, j;
        union overhead *p;



Home | Main Index | Thread Index | Old Index