From b7b70ba24369891d79079d247f246c1e357948d2 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Fri, 7 Feb 2025 01:58:00 +0100 Subject: passt-repair: Dodge "structurally unreachable code" warning from Coverity While main() conventionally returns int, and we need a return at the end of the function to avoid compiler warnings, turning that return into _exit() to avoid exit handlers triggers a Coverity warning. It's unreachable code anyway, so switch that single occurence back to a plain return. Signed-off-by: Stefano Brivio Reviewed-by: David Gibson --- passt-repair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/passt-repair.c b/passt-repair.c index 5ad5c9c..322066a 100644 --- a/passt-repair.c +++ b/passt-repair.c @@ -173,5 +173,5 @@ loop: goto loop; - _exit(0); + return 0; } -- cgit v1.2.3