diff options
author | Michael Biebl <biebl@debian.org> | 2014-04-03 03:08:50 +0200 |
---|---|---|
committer | Michael Biebl <biebl@debian.org> | 2014-04-03 03:08:50 +0200 |
commit | 9374a46543e9c43c009f80def8c3b2506b0b377e (patch) | |
tree | 8853fd40ee8d55ff24304ff8a4421640f3493c58 /runtime/lookup.c | |
parent | 209e193f14ec562df5aad945f04cd88b227cc602 (diff) | |
download | rsyslog-9374a46543e9c43c009f80def8c3b2506b0b377e.tar.gz |
Imported Upstream version 8.2.0upstream/8.2.0
Diffstat (limited to 'runtime/lookup.c')
-rw-r--r-- | runtime/lookup.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/lookup.c b/runtime/lookup.c index f2af17b..f7ed899 100644 --- a/runtime/lookup.c +++ b/runtime/lookup.c @@ -123,15 +123,18 @@ bs_arrcmp_strtab(const void *s1, const void *s2) rsRetVal lookupBuildTable(lookup_t *pThis, struct json_object *jroot) { - struct json_object *jversion, *jnomatch, *jtype, *jtab; + //struct json_object *jversion, *jnomatch, *jtype, *jtab; + struct json_object *jtab; struct json_object *jrow, *jindex, *jvalue; uint32_t i; uint32_t maxStrSize; DEFiRet; +#if 0 // enable when we continue to work on this module jversion = json_object_object_get(jroot, "version"); jnomatch = json_object_object_get(jroot, "nomatch"); jtype = json_object_object_get(jroot, "type"); +#endif jtab = json_object_object_get(jroot, "table"); pThis->nmemb = json_object_array_length(jtab); CHKmalloc(pThis->d.strtab = malloc(pThis->nmemb * sizeof(lookup_string_tab_etry_t))); |