From f08a488c30ff102c29f589c138bae29d91dccb2a Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 5 Jan 2025 08:39:55 -0800 Subject: Liberally apply some UWYI (use what you include) to header files --- src/core/strs.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/core/strs.h') diff --git a/src/core/strs.h b/src/core/strs.h index 697b4763..8321054c 100644 --- a/src/core/strs.h +++ b/src/core/strs.h @@ -1,5 +1,5 @@ // -// Copyright 2020 Staysail Systems, Inc. +// Copyright 2025 Staysail Systems, Inc. // Copyright 2017 Capitar IT Group BV // // This software is supplied under the terms of the MIT License, a @@ -13,11 +13,13 @@ // Safe string functions, in case the platform misses these. -extern char * nni_strdup(const char *); +#include "defs.h" + +extern char *nni_strdup(const char *); extern void nni_strfree(char *); extern size_t nni_strlcpy(char *, const char *, size_t); extern size_t nni_strnlen(const char *, size_t); -extern char * nni_strcasestr(const char *, const char *); +extern char *nni_strcasestr(const char *, const char *); extern int nni_strncasecmp(const char *, const char *, size_t); extern int nni_strcasecmp(const char *, const char *); extern int nni_asprintf(char **, const char *, ...); -- cgit v1.2.3-70-g09d2