Fixed (some) issues reported by SonarCloud
Some checks failed
ArchLinux PKGBUILD / build (push) Has been cancelled
CentOs / centos8 (push) Has been cancelled
FreeBSD Build / Build and Test (push) Has been cancelled
RPM Build / build (push) Has been cancelled
Build / macOS-14 cc (push) Has been cancelled
Build / ubuntu-latest clang (push) Has been cancelled
Build / ubuntu-latest clang-1 (push) Has been cancelled
Build / ubuntu-22.04 clang-12 (push) Has been cancelled
Build / ubuntu-latest gcc (push) Has been cancelled
Build / ubuntu-latest gcc-1 (push) Has been cancelled
Build / ubuntu-latest gcc-2 (push) Has been cancelled
Build / ubuntu-22.04 gcc-10 (push) Has been cancelled
Build / ubuntu-22.04 gcc-9 (push) Has been cancelled
SonarQube Scan / Build and analyze (push) Has been cancelled

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
Toni Uhlig 2026-05-14 16:57:38 +02:00
parent b3330b5907
commit b5bdcebbce
No known key found for this signature in database
GPG key ID: 22C5333D922537D2
2 changed files with 7 additions and 3 deletions

View file

@ -4,7 +4,7 @@ WORKDIR /root
RUN apt-get -y update \
&& apt-get install -y --no-install-recommends \
autoconf automake build-essential ca-certificates cmake git \
libpcap-dev libcurl4-openssl-dev libdbus-1-dev libtool make pkg-config unzip wget \
libcurl4-openssl-dev libdbus-1-dev libpcap-dev libtool make pkg-config unzip wget \
&& apt-get clean \
&& git clone https://github.com/utoni/nDPId.git

View file

@ -670,7 +670,9 @@ static int set_collector_nonblock(struct nDPId_reader_thread * const reader_thre
{
int current_flags;
while ((current_flags = fcntl(reader_thread->collector_sockfd, F_GETFL, 0)) == -1 && errno == EINTR) {}
while ((current_flags = fcntl(reader_thread->collector_sockfd, F_GETFL, 0)) == -1 && errno == EINTR) {
// Retry if interrupted by a signal.
}
if (current_flags == -1) {
reader_thread->collector_sock_last_errno = errno;
logger(1,
@ -704,7 +706,9 @@ static int set_collector_block(struct nDPId_reader_thread * const reader_thread)
{
int current_flags;
while ((current_flags = fcntl(reader_thread->collector_sockfd, F_GETFL, 0)) == -1 && errno == EINTR) {}
while ((current_flags = fcntl(reader_thread->collector_sockfd, F_GETFL, 0)) == -1 && errno == EINTR) {
// Retry if interrupted by a signal.
}
if (current_flags == -1) {
reader_thread->collector_sock_last_errno = errno;
logger(1,