]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
utils/cache_gc/main.c: replace asserts
authorTomas Krizek <tomas.krizek@nic.cz>
Wed, 24 Mar 2021 16:44:48 +0000 (17:44 +0100)
committerTomas Krizek <tomas.krizek@nic.cz>
Tue, 25 May 2021 12:39:44 +0000 (14:39 +0200)
utils/cache_gc/main.c

index 520b878a4bfb7466bb42d33132ac747304be69ff..5a0c4bd48280357a340a0054abb64212058b84db 100644 (file)
@@ -1,5 +1,4 @@
 /* SPDX-License-Identifier: GPL-3.0-or-later */
-#include <assert.h>
 #include <signal.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -27,7 +26,7 @@ static void got_killed(int signum)
        case 3:
                abort();
        default:
-               assert(0);
+               (void)!kr_assume(false);
        }
 }
 
@@ -123,7 +122,7 @@ int main(int argc, char *argv[])
                        print_help();
                        return 1;
                default:
-                       assert(0);
+                       (void)!kr_assume(false);
                }
        }