From a608f1e781aeaba2cd276d6b15dbdf53e980a23f Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?=
Date: Tue, 19 Sep 2017 22:24:39 -0700
Subject: [PATCH] maint: fix new syntax-check failures from HTTPS adjustments
* cfg.mk [old_NEWS_hash]: update with `make update-NEWS-hash`.
[sc_long_lines]: Avoid flagging (long) URLs in NEWS.
* src/sort.c: Tweak to a shorter line.
* src/tail.c: Likewise.
Introduced in v8.28-4-gbe87d61
---
cfg.mk | 5 +++--
src/sort.c | 2 +-
src/tail.c | 2 +-
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/cfg.mk b/cfg.mk
index a20d2b08f4..eb04fd830b 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -48,7 +48,7 @@ export VERBOSE = yes
# 4914152 9e
export XZ_OPT = -8e
-old_NEWS_hash = 0c14d8be06bfd7cc0024b7d39fdd6e1e
+old_NEWS_hash = 8c2a749f657a6bd541e8b9c5227fe26f
# Add an exemption for sc_makefile_at_at_check.
_makefile_at_at_check_exceptions = ' && !/^cu_install_prog/ && !/dynamic-dep/'
@@ -320,11 +320,12 @@ sc_prohibit-gl-attributes:
$(_sc_search_regexp)
# Look for lines longer than 80 characters, except omit:
-# - program-generated long lines in diff headers,
+# - urls
# - the help2man script copied from upstream,
# - tests involving long checksum lines, and
# - the 'pr' test cases.
FILTER_LONG_LINES = \
+ \|^[^:]*NEWS:.*https\{,1\}://| d; \
\|^[^:]*man/help2man:| d; \
\|^[^:]*tests/misc/sha[0-9]*sum.*\.pl[-:]| d; \
\|^[^:]*tests/pr/|{ \|^[^:]*tests/pr/pr-tests:| !d; };
diff --git a/src/sort.c b/src/sort.c
index e5ef8a72f3..8f16ec41df 100644
--- a/src/sort.c
+++ b/src/sort.c
@@ -3193,7 +3193,7 @@ sequential_sort (struct line *restrict lines, size_t nlines,
if (nlines == 2)
{
/* Declare 'swap' as int, not bool, to work around a bug
-