mirror of
https://github.com/xorgy/mediafire-fuse
synced 2026-01-13 21:24:28 -08:00
remove json_object_by_path
This commit is contained in:
@@ -24,7 +24,6 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#include "../../utils/http.h"
|
||||
#include "../../utils/json.h"
|
||||
#include "../mfconn.h"
|
||||
#include "../apicalls.h" // IWYU pragma: keep
|
||||
|
||||
@@ -94,7 +93,7 @@ static int _decode_upload_poll_upload(mfhttp * conn, void *user_ptr)
|
||||
return -1;
|
||||
}
|
||||
|
||||
node = json_object_by_path(root, "response");
|
||||
node = json_object_get(root, "response");
|
||||
|
||||
retval = mfapi_check_response(node, "upload/poll_upload");
|
||||
if (retval != 0) {
|
||||
@@ -103,7 +102,7 @@ static int _decode_upload_poll_upload(mfhttp * conn, void *user_ptr)
|
||||
return retval;
|
||||
}
|
||||
|
||||
node = json_object_by_path(root, "response/doupload");
|
||||
node = json_object_get(node, "doupload");
|
||||
|
||||
// make sure that the result code is zero (success)
|
||||
j_obj = json_object_get(node, "result");
|
||||
|
||||
Reference in New Issue
Block a user