]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib/defaults: more bool confusion
authorDavid Lamparter <equinox@diac24.net>
Tue, 14 Apr 2020 11:22:38 +0000 (13:22 +0200)
committerDavid Lamparter <equinox@diac24.net>
Tue, 14 Apr 2020 11:25:25 +0000 (13:25 +0200)
Sigh.  Initializing a bool to -1 gives 1.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/defaults.c

index 71ccc73cc620cccbe757a8b8fcadf0084eb12be2..4dcfe2899b0f040725cabc6fc49047d0324049f9 100644 (file)
@@ -102,7 +102,7 @@ static bool frr_match_version(const char *name, const char *vspec,
        int cmp;
        static struct spec {
                const char *str;
-               bool dir, eq;
+               int dir, eq;
        } *s, specs[] = {
                {"<=", -1, 1},
                {">=", 1, 1},