mirror of
https://github.com/xorgy/mediafire-fuse
synced 2026-03-21 17:04:30 -07:00
build with -Wall -Wextra -Werror and fix errors
This commit is contained in:
@@ -70,7 +70,6 @@ _decode_file_get_info(http_t *conn, void *data)
|
||||
json_t *quickkey;
|
||||
json_t *file_hash;
|
||||
json_t *file_name;
|
||||
json_t *file_folder;
|
||||
int retval = 0;
|
||||
file_t *file;
|
||||
|
||||
|
||||
@@ -43,7 +43,6 @@ mfconn_api_folder_get_content(mfconn_t *mfconn, int mode, folder_t *folder_curr)
|
||||
{
|
||||
char *api_call;
|
||||
int retval;
|
||||
char *rx_buffer;
|
||||
char *content_type;
|
||||
|
||||
if(mfconn == NULL) return -1;
|
||||
@@ -96,6 +95,9 @@ _decode_folder_get_content_folders(http_t *conn, void *user_ptr)
|
||||
int array_sz;
|
||||
int i = 0;
|
||||
|
||||
if (user_ptr != NULL)
|
||||
return -1;
|
||||
|
||||
root = http_parse_buf_json(conn, 0, &error);
|
||||
|
||||
/*json_t *result = json_object_by_path(root, "response/action");
|
||||
@@ -154,6 +156,9 @@ _decode_folder_get_content_files(http_t *conn, void *user_ptr)
|
||||
int array_sz;
|
||||
int i = 0;
|
||||
|
||||
if (user_ptr != NULL)
|
||||
return -1;
|
||||
|
||||
root = http_parse_buf_json(conn, 0, &error);
|
||||
|
||||
node = json_object_by_path(root,"response/folder_content");
|
||||
|
||||
@@ -63,6 +63,9 @@ _decode_user_get_info(http_t *conn, void *data)
|
||||
json_t *first_name;
|
||||
json_t *last_name;
|
||||
|
||||
if (data != NULL)
|
||||
return -1;
|
||||
|
||||
root = http_parse_buf_json(conn, 0, &error);
|
||||
|
||||
node = json_object_by_path(root,"response/user_info");
|
||||
|
||||
@@ -87,7 +87,7 @@ mfconn_create_user_signature(mfconn_t *mfconn, char *username, char *password,
|
||||
{
|
||||
char *signature_raw;
|
||||
unsigned char signature_enc[20]; // sha1 is 160 bits
|
||||
unsigned char signature_hex[41];
|
||||
char signature_hex[41];
|
||||
int i;
|
||||
|
||||
if(mfconn == NULL) return NULL;
|
||||
@@ -114,7 +114,7 @@ mfconn_create_call_signature(mfconn_t *mfconn,char *url,char *args)
|
||||
{
|
||||
char *signature_raw;
|
||||
unsigned char signature_enc[16]; // md5 is 128 bits
|
||||
unsigned char signature_hex[33];
|
||||
char signature_hex[33];
|
||||
char *api;
|
||||
int i;
|
||||
|
||||
@@ -156,7 +156,6 @@ mfconn_create_signed_get(mfconn_t *mfconn,int ssl,char *api,char *fmt,...)
|
||||
char *call_hash;
|
||||
char *session_token;
|
||||
int bytes_to_alloc;
|
||||
int api_request_len;
|
||||
int api_args_len;
|
||||
int api_len;
|
||||
va_list ap;
|
||||
|
||||
Reference in New Issue
Block a user