From 2f24a1b1c93b8c45dce391ed0439131f9ad8cf28 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 11 Oct 2025 06:50:54 -0700 Subject: fix includes for core --- src/core/strs.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/core/strs.c') diff --git a/src/core/strs.c b/src/core/strs.c index 3f51e59a..ad73951b 100644 --- a/src/core/strs.c +++ b/src/core/strs.c @@ -14,7 +14,8 @@ #include #include -#include "core/nng_impl.h" +#include "defs.h" +#include "strs.h" // This file contains implementation of utility functions that are not // part of standard C99. (C11 has added some things here, but we cannot @@ -28,7 +29,7 @@ char * nni_strdup(const char *src) { - char * dst; + char *dst; size_t len = strlen(src) + 1; if ((dst = nni_alloc(len)) != NULL) { @@ -157,7 +158,7 @@ nni_asprintf(char **sp, const char *fmt, ...) { va_list ap; size_t len; - char * s; + char *s; va_start(ap, fmt); len = vsnprintf(NULL, 0, fmt, ap); -- cgit v1.2.3-70-g09d2