diff options
| author | David Lamparter <equinox@diac24.net> | 2020-04-14 13:22:38 +0200 |
|---|---|---|
| committer | David Lamparter <equinox@diac24.net> | 2020-04-14 13:25:25 +0200 |
| commit | 7b8c2b3d6655f003f40079f3afb7cd288458e391 (patch) | |
| tree | 2a10062b110b174b2bea6287b3b001ae7ca52113 /lib/defaults.c | |
| parent | 63ffd0ea209a9d24cde135f790a20f0b4f1eee8b (diff) | |
lib/defaults: more bool confusion
Sigh. Initializing a bool to -1 gives 1.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/defaults.c')
| -rw-r--r-- | lib/defaults.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/defaults.c b/lib/defaults.c index 71ccc73cc6..4dcfe2899b 100644 --- a/lib/defaults.c +++ b/lib/defaults.c @@ -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}, |
