diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2025-02-07 01:58:00 +0100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2025-02-07 10:35:46 +0100 |
commit | b7b70ba24369891d79079d247f246c1e357948d2 (patch) | |
tree | 47eac27610bce6ea923f63c779f7e094177c54ea | |
parent | 0f009ea598707c5978846387d716f4a612d07b36 (diff) | |
download | passt-b7b70ba24369891d79079d247f246c1e357948d2.tar passt-b7b70ba24369891d79079d247f246c1e357948d2.tar.gz passt-b7b70ba24369891d79079d247f246c1e357948d2.tar.bz2 passt-b7b70ba24369891d79079d247f246c1e357948d2.tar.lz passt-b7b70ba24369891d79079d247f246c1e357948d2.tar.xz passt-b7b70ba24369891d79079d247f246c1e357948d2.tar.zst passt-b7b70ba24369891d79079d247f246c1e357948d2.zip |
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 <sbrivio@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
-rw-r--r-- | passt-repair.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |