From c138111a3c27863308b6552a5527a9e821a3dc11 Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Sun, 17 May 2020 17:05:30 -0700 Subject: Update to rra-c-util 8.2 and C TAP Harness 4.7 Update to rra-c-util 8.2: * Implement explicit_bzero with memset if it is not available. * Reformat all C source using clang-format 10. * Work around Test::Strict not skipping .git directories. * Fix warnings with perltidy 20190601 and Perl::Critic 1.134. * Fix warnings with Clang 10, GCC 10, and the Clang static analyzer. Update to C TAP Harness 4.7: * Fix warnings with GCC 10. * Reformat all C source using clang-format 10. * Fixed malloc error checking in bstrndup. --- portable/system.h | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'portable/system.h') diff --git a/portable/system.h b/portable/system.h index 6fe4928..3d62b6f 100644 --- a/portable/system.h +++ b/portable/system.h @@ -25,7 +25,7 @@ * which can be found at . * * Written by Russ Allbery - * Copyright 2014, 2016, 2018 Russ Allbery + * Copyright 2014, 2016, 2018, 2020 Russ Allbery * Copyright 2006-2011, 2013-2014 * The Board of Trustees of the Leland Stanford Junior University * @@ -48,28 +48,28 @@ /* A set of standard ANSI C headers. We don't care about pre-ANSI systems. */ #if HAVE_INTTYPES_H -# include +# include #endif #include #include #include #if HAVE_STDINT_H -# include +# include #endif #include #include #include #if HAVE_STRINGS_H -# include +# include #endif #include #if HAVE_UNISTD_H -# include +# include #endif /* SCO OpenServer gets int32_t from here. */ #if HAVE_SYS_BITYPES_H -# include +# include #endif /* Get the bool type. */ @@ -77,12 +77,12 @@ /* In case uint32_t and associated limits weren't defined. */ #ifndef UINT32_MAX -# define UINT32_MAX 4294967295UL +# define UINT32_MAX 4294967295UL #endif /* Windows provides snprintf under a different name. */ #ifdef _WIN32 -# define snprintf _snprintf +# define snprintf _snprintf #endif /* Windows does not define ssize_t. */ @@ -95,9 +95,9 @@ typedef ptrdiff_t ssize_t; * been defined, all the rest almost certainly have. */ #ifndef STDIN_FILENO -# define STDIN_FILENO 0 -# define STDOUT_FILENO 1 -# define STDERR_FILENO 2 +# define STDIN_FILENO 0 +# define STDOUT_FILENO 1 +# define STDERR_FILENO 2 #endif /* @@ -105,11 +105,11 @@ typedef ptrdiff_t ssize_t; * Autoconf manual, memcpy is a generally portable fallback. */ #ifndef va_copy -# ifdef __va_copy -# define va_copy(d, s) __va_copy((d), (s)) -# else -# define va_copy(d, s) memcpy(&(d), &(s), sizeof(va_list)) -# endif +# ifdef __va_copy +# define va_copy(d, s) __va_copy((d), (s)) +# else +# define va_copy(d, s) memcpy(&(d), &(s), sizeof(va_list)) +# endif #endif BEGIN_DECLS -- cgit v1.2.3