Improve compatibility with C++ consumers

C++ is a little picky about not using keywords for names, or string
constness.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Jorgen Lundman <lundman@lundman.net>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes #10409
This commit is contained in:
Ryan Moeller
2020-06-06 15:54:04 -04:00
committed by GitHub
parent c1f3de18a4
commit 60265072e0
16 changed files with 64 additions and 50 deletions
+2 -1
View File
@@ -50,7 +50,8 @@ libspl_assert(const char *buf, const char *file, const char *func, int line)
/* printf version of libspl_assert */
static inline void
libspl_assertf(const char *file, const char *func, int line, char *format, ...)
libspl_assertf(const char *file, const char *func, int line,
const char *format, ...)
{
va_list args;
+1 -1
View File
@@ -145,7 +145,7 @@ umem_cache_create(
{
umem_cache_t *cp;
cp = umem_alloc(sizeof (umem_cache_t), UMEM_DEFAULT);
cp = (umem_cache_t *)umem_alloc(sizeof (umem_cache_t), UMEM_DEFAULT);
if (cp) {
strlcpy(cp->cache_name, name, UMEM_CACHE_NAMELEN);
cp->cache_bufsize = bufsize;