mirror of
https://github.com/owntracks/recorder.git
synced 2024-11-15 18:08:28 -07:00
missing arg
This commit is contained in:
parent
69b08fe3e3
commit
c91791683e
@ -104,7 +104,7 @@ void append_device_details(JsonNode *userlist, char *user, char *device)
|
|||||||
|
|
||||||
card = json_mkobject();
|
card = json_mkobject();
|
||||||
if (json_copy_from_file(card, path) == TRUE) {
|
if (json_copy_from_file(card, path) == TRUE) {
|
||||||
json_copy_to_object(last, card);
|
json_copy_to_object(last, card, FALSE);
|
||||||
} else {
|
} else {
|
||||||
/* No CARD? Discontinue */
|
/* No CARD? Discontinue */
|
||||||
json_delete(card);
|
json_delete(card);
|
||||||
@ -121,7 +121,7 @@ void append_device_details(JsonNode *userlist, char *user, char *device)
|
|||||||
|
|
||||||
geo = json_mkobject();
|
geo = json_mkobject();
|
||||||
if (json_copy_from_file(geo, path) == TRUE) {
|
if (json_copy_from_file(geo, path) == TRUE) {
|
||||||
json_copy_to_object(last, geo);
|
json_copy_to_object(last, geo, FALSE);
|
||||||
} else {
|
} else {
|
||||||
json_delete(geo);
|
json_delete(geo);
|
||||||
}
|
}
|
||||||
@ -130,6 +130,10 @@ void append_device_details(JsonNode *userlist, char *user, char *device)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Return an array of users gleaned from LAST with merged details
|
||||||
|
*/
|
||||||
|
|
||||||
JsonNode *last_users()
|
JsonNode *last_users()
|
||||||
{
|
{
|
||||||
JsonNode *obj = json_mkobject();
|
JsonNode *obj = json_mkobject();
|
||||||
|
Loading…
Reference in New Issue
Block a user