diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2012-02-20 19:26:07 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2012-02-20 19:26:07 +0200 |
commit | 6a24cb04edcc1978d18185167b5203522b078caa (patch) | |
tree | 72685874dc1e27613a6b7ff2e623c584e00e3995 | |
parent | 330125a219489f1253fa7d1d9eba9e5ddeb82770 (diff) | |
download | slb-6a24cb04edcc1978d18185167b5203522b078caa.tar.gz slb-6a24cb04edcc1978d18185167b5203522b078caa.tar.bz2 |
Bugfixes.
* grecs: Upgrade.
* src/config.c (parse_assert_argv): Fix diagnostic message.
(server_kw)<table>: Mark as GRECS_MULT.
m--------- | grecs | 0 | ||||
-rw-r--r-- | src/config.c | 4 |
2 files changed, 2 insertions, 2 deletions
diff --git a/grecs b/grecs -Subproject 24890618970bcc010d090c2dced95f0cce746ca +Subproject 84009ba4cd4246be9def916554e0b9856124477 diff --git a/src/config.c b/src/config.c index 76ca179..877bd85 100644 --- a/src/config.c +++ b/src/config.c @@ -450,13 +450,13 @@ parse_assert_argv(char **argv, struct grecs_symtab *at, grecs_locus_t *locus) return NULL; } install = 1; ap = assertion_lookup(at, oid, oidlen, &install); if (!install) - grecs_error(locus, 0, _("redefinition of %s"), argv); + grecs_error(locus, 0, _("redefinition of assertion")); ap->opcode = opcode; ap->flags = flags; if (strcmp(argv[2], "-prev") == 0) { ap->value = NULL; ap->flags |= SLB_ASSERT_PREV; @@ -899,13 +899,13 @@ static struct grecs_keyword server_kw[] = { { "expression", NULL, N_("Evaluate expression"), grecs_type_string, GRECS_AGGR, NULL, offsetof(struct slb_server, expr), cb_server_expression }, { "table", N_("<name: string> <base-oid: string>"), N_("Define SNMP table"), - grecs_type_string, GRECS_DFLT, + grecs_type_string, GRECS_MULT, NULL, offsetof(struct slb_server, tables), cb_table }, { "variable", N_("<name: string> <oid: string>"), N_("Define SNMP variable"), grecs_type_string, GRECS_MULT, NULL, 0, |