-AM_CPPFLAGS = -Wall -std=gnu99\
+AM_CPPFLAGS = -Wall -std=gnu99 -Werror\
-DDEFAULT_WWW_DIR=\""$(pkgdatadir)/www"\"\
$(CURL_CFLAGS) $(JSON_CFLAGS)
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
-AM_CPPFLAGS = -Wall -std=gnu99\
+AM_CPPFLAGS = -Wall -std=gnu99 -Werror\
-DDEFAULT_WWW_DIR=\""$(pkgdatadir)/www"\"\
$(CURL_CFLAGS) $(JSON_CFLAGS)
static int json_object_get_fields_count(json_object *o)
{
int n = 0;
+ struct lh_entry *entry;
- json_object_object_foreach(o, key, val)
+ entry = json_object_get_object(o)->head;
+ while (entry) {
+ entry = entry->next;
n++;
+ }
return n;
}