From 3f1be9087db190121fe98d564d288a78c71692b6 Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Sat, 29 Aug 2015 21:35:05 +0200 Subject: [PATCH] fix dependency & error on lister --- Makefile | 2 +- http.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 0ab88ba..ff19411 100644 --- a/Makefile +++ b/Makefile @@ -42,7 +42,7 @@ ghash.o: ghash.h ghash.c config.h udata.h misc.h Makefile config.mk safewrite.o: safewrite.h safewrite.c jget.o: jget.c jget.h json.h Makefile config.mk misc.o: misc.c misc.h udata.h Makefile config.mk -http.o: http.c mongoose.h util.h http.h +http.o: http.c mongoose.h util.h http.h storage.h util.o: util.c util.h Makefile config.mk ocat: ocat.o storage.o json.o geohash.o ghash.o mkpath.o util.o diff --git a/http.c b/http.c index 1de2814..9937c6d 100644 --- a/http.c +++ b/http.c @@ -81,7 +81,7 @@ void push_geojson(struct mg_connection *conn) * process each and build the JSON `obj' with an array of locations. */ - if ((json = lister(username, device, s_lo, s_hi)) != NULL) { + if ((json = lister(username, device, s_lo, s_hi, FALSE)) != NULL) { if ((arr = json_find_member(json, "results")) != NULL) { // get array json_foreach(f, arr) { // fprintf(stderr, "%s\n", f->string_); @@ -188,7 +188,7 @@ int ev_handler(struct mg_connection *conn, enum mg_event ev) if (!strcmp(conn->uri, "/api/users")) { JsonNode *json; - if ((json = lister(NULL, NULL, 0, 0)) != NULL) { + if ((json = lister(NULL, NULL, 0, 0, FALSE)) != NULL) { char *js; js = json_stringify(json, " ");