fix dependency & error on lister

This commit is contained in:
Jan-Piet Mens
2015-08-29 21:35:05 +02:00
parent 7145d5c11d
commit 3f1be9087d
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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, " ");