Source-Changes-HG archive

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

[src/trunk]: src/sys/lib/libkern Fix building in the _STANDALONE case.



details:   https://anonhg.NetBSD.org/src/rev/ec62b4bd38c1
branches:  trunk
changeset: 950268:ec62b4bd38c1
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sat Jan 23 19:41:16 2021 +0000

description:
Fix building in the _STANDALONE case.

diffstat:

 sys/lib/libkern/strlist.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r 8e98e1c5e153 -r ec62b4bd38c1 sys/lib/libkern/strlist.c
--- a/sys/lib/libkern/strlist.c Sat Jan 23 19:38:51 2021 +0000
+++ b/sys/lib/libkern/strlist.c Sat Jan 23 19:41:16 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: strlist.c,v 1.1 2021/01/21 15:43:37 thorpej Exp $      */
+/*     $NetBSD: strlist.c,v 1.2 2021/01/23 19:41:16 thorpej Exp $      */
 
 /*-
  * Copyright (c) 2021 The NetBSD Foundation, Inc.
@@ -65,12 +65,13 @@
        kmem_free(v, size);
 }
 #elif defined(_STANDALONE)
+#include <lib/libkern/libkern.h>
 #include <lib/libsa/stand.h>
 
 static void *
 strlist_alloc(size_t const size)
 {
-       cp = alloc(size);
+       char *cp = alloc(size);
        if (cp != NULL) {
                memset(cp, 0, size);
        }



Home | Main Index | Thread Index | Old Index