modules: verify: use conf_verify_unsigned() for options that should be >= 0

This commit is contained in:
Daniel Eklöf 2021-11-15 18:17:29 +01:00
parent b6931c6ed0
commit f166bbbf54
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
7 changed files with 13 additions and 13 deletions

View file

@ -878,9 +878,9 @@ static bool
verify_conf(keychain_t *chain, const struct yml_node *node)
{
static const struct attr_info attrs[] = {
{"spacing", false, &conf_verify_int},
{"left-spacing", false, &conf_verify_int},
{"right-spacing", false, &conf_verify_int},
{"spacing", false, &conf_verify_unsigned},
{"left-spacing", false, &conf_verify_unsigned},
{"right-spacing", false, &conf_verify_unsigned},
{"sort", false, &verify_sort},
{"persistent", false, &verify_persistent},
{"content", true, &verify_content},