From 767ddeb10cb2b949ddfa12a68742829d5dfda0af Mon Sep 17 00:00:00 2001 From: Degen's Regens Date: Fri, 16 Aug 2024 17:24:40 +0200 Subject: [PATCH] size_t cannot be negative (#154) --- docs/signal-safe-tracing.md | 3 --- test/signal_tracer.cpp | 3 --- 2 files changed, 6 deletions(-) diff --git a/docs/signal-safe-tracing.md b/docs/signal-safe-tracing.md index bb8e57a..950c257 100644 --- a/docs/signal-safe-tracing.md +++ b/docs/signal-safe-tracing.md @@ -223,9 +223,6 @@ int main() { std::size_t res = fread(&frame, sizeof(frame), 1, stdin); if(res == 0) { break; - } else if(res == -1) { - perror("Something went wrong while reading from the pipe"); - break; } else if(res != 1) { std::cerr<<"Something went wrong while reading from the pipe"<