mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-12 12:32:41 +00:00
lib/defaults: don't use "static" in a weird way
This didn't break anything but it's not really correct either. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
parent
7b8c2b3d66
commit
d29c01db81
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user