mirror of
https://github.com/owntracks/recorder.git
synced 2026-02-13 20:49:51 +00:00
unused 'track'
This commit is contained in:
4
http.c
4
http.c
@@ -644,7 +644,7 @@ static int ctrl_track(struct mg_connection *conn)
|
||||
char *p, *username = NULL, *device = NULL;
|
||||
char *from = NULL, *to = NULL;
|
||||
time_t s_lo, s_hi;
|
||||
JsonNode *response, *obj, *track, *locs, *fields, *json, *arr;
|
||||
JsonNode *response, *obj, *locs, *fields, *json, *arr;
|
||||
|
||||
if ((p = field(conn, "user")) != NULL) {
|
||||
username = strdup(p);
|
||||
@@ -672,8 +672,6 @@ static int ctrl_track(struct mg_connection *conn)
|
||||
response = json_mkobject();
|
||||
json_append_member(response, "message", json_mkstring("OK"));
|
||||
|
||||
track = json_mkarray();
|
||||
|
||||
fields = json_mkarray();
|
||||
json_append_element(fields, json_mkstring("tst"));
|
||||
json_append_element(fields, json_mkstring("lat"));
|
||||
|
||||
Reference in New Issue
Block a user