X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/5ee84006635471924157f07fe1ffe75cb253cae5..ba937f0119d6102d2af9cc777cce495e65544952:/lib/configuration.c?ds=sidebyside diff --git a/lib/configuration.c b/lib/configuration.c index 5c1d4ce..ca7d86e 100644 --- a/lib/configuration.c +++ b/lib/configuration.c @@ -311,7 +311,7 @@ static int set_restrict(const struct config_state *cs, }; for(n = 0; n < nvec; ++n) { - if((i = TABLE_FIND(restrictions, struct restriction, name, vec[n])) < 0) { + if((i = TABLE_FIND(restrictions, name, vec[n])) < 0) { error(0, "%s:%d: invalid restriction '%s'", cs->path, cs->line, vec[n]); return -1; @@ -986,7 +986,7 @@ static const struct conf conf[] = { static const struct conf *find(const char *key) { int n; - if((n = TABLE_FIND(conf, struct conf, name, key)) < 0) + if((n = TABLE_FIND(conf, name, key)) < 0) return 0; return &conf[n]; }