diff options
Diffstat (limited to 'lib/defaults.c')
-rw-r--r-- | lib/defaults.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/defaults.c b/lib/defaults.c index 4dcfe2899..7466aad5b 100644 --- a/lib/defaults.c +++ b/lib/defaults.c @@ -100,10 +100,10 @@ static bool frr_match_version(const char *name, const char *vspec, const char *version, bool check) { int cmp; - static struct spec { + static const struct spec { const char *str; int dir, eq; - } *s, specs[] = { + } specs[] = { {"<=", -1, 1}, {">=", 1, 1}, {"==", 0, 1}, @@ -112,6 +112,7 @@ static bool frr_match_version(const char *name, const char *vspec, {"=", 0, 1}, {NULL, 0, 0}, }; + const struct spec *s; if (!vspec) /* NULL = all versions */ |