]> granicus.if.org Git - graphviz/commitdiff
mingle usage: remove always-true if branch
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 17 Nov 2021 02:54:40 +0000 (18:54 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 21 Nov 2021 01:09:14 +0000 (17:09 -0800)
This function is only ever called with `eval` non-negative.

cmd/mingle/minglemain.c

index caffbfc03fa42a37ec507be9514343b5f0243eae..95140e6ddf052f8cb673067535103de3f09a8a81 100644 (file)
@@ -79,7 +79,7 @@ static void
 usage (int eval)
 {
        fputs (use_msg, stderr);
-       if (eval >= 0) exit (eval);
+       exit(eval);
 }
 
 /* checkG: