From accb66f9e67af528c922deddec30857d8e39ddf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaspar=20L=C3=B6chte?= Date: Sat, 6 Feb 2021 23:53:42 +0100 Subject: [PATCH 1/3] Fixing clang compiler warning, because of double parentheses --- base/networking.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/networking.c b/base/networking.c index c451c648b..34b1d37c1 100644 --- a/base/networking.c +++ b/base/networking.c @@ -651,7 +651,7 @@ port_range_ranges (const char *port_range) if (element_strlen >= 2) { - if ((element[0] == 'T')) + if (element[0] == 'T') { element++; while (*element && isblank (*element)) @@ -662,7 +662,7 @@ port_range_ranges (const char *port_range) tcp = 1; } } - else if ((element[0] == 'U')) + else if (element[0] == 'U') { element++; while (*element && isblank (*element)) From 60f2aaa45fc9d25086c64c5a33e36c0d3150d2dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaspar=20L=C3=B6chte?= Date: Sat, 6 Feb 2021 23:59:10 +0100 Subject: [PATCH 2/3] Added CHANGELOG entry. --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 034b2c5ac..0933f405b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Added ### Changed ### Fixed +* Fixing [#434 ](https://github.com/greenbone/gvm-libs/pull/434) by removing the extra parentheses in `base/networking.c` [#437](https://github.com/greenbone/gvm-libs/pull/437) ### Removed [20.8.2]: https://github.com/greenbone/gvm-libs/compare/v20.8.1...gvm-libs-20.08 From 50faa805464a368b56b803c55c3d6e07ddf6af3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Nicola?= Date: Mon, 8 Feb 2021 10:56:32 +0100 Subject: [PATCH 3/3] Update CHANGELOG.md Co-authored-by: cfi-gb <34644702+cfi-gb@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 91bee918b..108b4fd36 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Added ### Changed ### Fixed -* Fixing [#434 ](https://github.com/greenbone/gvm-libs/pull/434) by removing the extra parentheses in `base/networking.c` [#437](https://github.com/greenbone/gvm-libs/pull/437) +* Fixing [#434](https://github.com/greenbone/gvm-libs/pull/434) by removing the extra parentheses in `base/networking.c` [#437](https://github.com/greenbone/gvm-libs/pull/437) * Adding initialization to struct scanner in `boreas/util_tests.c`. [#438](https://github.com/greenbone/gvm-libs/pull/438) ### Removed