]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: fix recent syntax-check failures
authorPádraig Brady <P@draigBrady.com>
Mon, 1 Nov 2021 13:36:43 +0000 (13:36 +0000)
committerPádraig Brady <P@draigBrady.com>
Mon, 1 Nov 2021 13:45:15 +0000 (13:45 +0000)
* cfg.mk (exclude_file_name_regexp--sc_system_h_headers):
Add chown-core.h to the regexp, to better decouple from system.h.
* src/env.c: Remove minmax.h include already included in system.h.
* src/libstdbuf.c: Likewise.
* src/prog-fprintf.h: Remove doubled semicolon.

cfg.mk
src/env.c
src/libstdbuf.c
src/prog-fprintf.h

diff --git a/cfg.mk b/cfg.mk
index ccd591e7d3efa845e7de7dab8568c4e3a25b8f2b..6d6c37dc2d211c19f8e910ec1611b5902c92551c 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -839,7 +839,7 @@ exclude_file_name_regexp--sc_bindtextdomain = \
 exclude_file_name_regexp--sc_trailing_blank = \
   ^(tests/pr/|gl/.*\.diff$$|man/help2man)
 exclude_file_name_regexp--sc_system_h_headers = \
-  ^src/((die|system|copy|find-mount-point)\.h|make-prime-list\.c)$$
+  ^src/((die|system|copy|chown-core|find-mount-point)\.h|make-prime-list\.c)$$
 
 _src = (crctab|false|lbracket|ls-(dir|ls|vdir)|tac-pipe|uname-(arch|uname))
 _gl_src = (xdecto.max|cl-strtold)
index 98382a4396ae767fabd33192dc47533bfc0fae9b..96ea1f71bc219e711bea96c19ca354bc57c08db2 100644 (file)
--- a/src/env.c
+++ b/src/env.c
@@ -27,7 +27,6 @@
 #include "die.h"
 #include "error.h"
 #include "idx.h"
-#include "minmax.h"
 #include "operand2sig.h"
 #include "quote.h"
 #include "sig2str.h"
index 4350b4655cf1191d16672e38b3e98af62cc0d1f3..e7642aebea2a5ee882c913f63da30f2d933ea828 100644 (file)
@@ -20,7 +20,6 @@
 #include <stdio.h>
 #include <stdint.h>
 #include "system.h"
-#include "minmax.h"
 
 /* Deactivate config.h's "rpl_"-prefixed definitions, since we don't
    link gnulib here, and the replacements aren't needed.  */
index eb0f185e6c43cb048829421cb9a6b8e95b5650ee..a18b977dd2e3e38d1674631e9da408c290c1afa9 100644 (file)
@@ -20,6 +20,6 @@
 # include <stdio.h>
 
 extern void prog_fprintf (FILE *fp, char const *fmt, ...)
-  _GL_ATTRIBUTE_FORMAT ((__printf__, 2, 3)) _GL_ATTRIBUTE_NONNULL ((1, 2));;
+  _GL_ATTRIBUTE_FORMAT ((__printf__, 2, 3)) _GL_ATTRIBUTE_NONNULL ((1, 2));
 
 #endif