mirror of
https://github.com/lammertb/libhttp.git
synced 2025-08-07 16:02:55 +03:00
Use long long instead of int64_t in the public interface for consistency
This commit is contained in:
@@ -231,7 +231,7 @@ field_get(const char *key, const char *value, size_t valuelen, void *user_data)
|
|||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
field_stored(const char *path, size_t file_size, void *user_data)
|
field_stored(const char *path, long long file_size, void *user_data)
|
||||||
{
|
{
|
||||||
struct mg_connection *conn = (struct mg_connection *)user_data;
|
struct mg_connection *conn = (struct mg_connection *)user_data;
|
||||||
|
|
||||||
|
@@ -814,7 +814,7 @@ struct mg_form_data_handler {
|
|||||||
* Return value:
|
* Return value:
|
||||||
* TODO: Needs to be defined.
|
* TODO: Needs to be defined.
|
||||||
*/
|
*/
|
||||||
int (*field_store)(const char *path, size_t file_size, void *user_data);
|
int (*field_store)(const char *path, long long file_size, void *user_data);
|
||||||
|
|
||||||
/* User supplied argument, passed to all callback functions. */
|
/* User supplied argument, passed to all callback functions. */
|
||||||
void *user_data;
|
void *user_data;
|
||||||
|
@@ -9319,7 +9319,7 @@ mg_upload_field_get(const char *key,
|
|||||||
|
|
||||||
/* Helper function for deprecated mg_upload. */
|
/* Helper function for deprecated mg_upload. */
|
||||||
static int
|
static int
|
||||||
mg_upload_field_stored(const char *path, size_t file_size, void *user_data)
|
mg_upload_field_stored(const char *path, long long file_size, void *user_data)
|
||||||
{
|
{
|
||||||
struct mg_upload_user_data *fud = (struct mg_upload_user_data *)user_data;
|
struct mg_upload_user_data *fud = (struct mg_upload_user_data *)user_data;
|
||||||
(void)file_size;
|
(void)file_size;
|
||||||
|
@@ -117,7 +117,7 @@ url_encoded_field_get(const struct mg_connection *conn,
|
|||||||
static int
|
static int
|
||||||
field_stored(const struct mg_connection *conn,
|
field_stored(const struct mg_connection *conn,
|
||||||
const char *path,
|
const char *path,
|
||||||
size_t file_size,
|
long long file_size,
|
||||||
struct mg_form_data_handler *fdh)
|
struct mg_form_data_handler *fdh)
|
||||||
{
|
{
|
||||||
/* Equivalent to "upload" callback of "mg_upload". */
|
/* Equivalent to "upload" callback of "mg_upload". */
|
||||||
@@ -162,7 +162,7 @@ mg_handle_form_request(struct mg_connection *conn,
|
|||||||
int r;
|
int r;
|
||||||
int field_count = 0;
|
int field_count = 0;
|
||||||
struct file fstore = STRUCT_FILE_INITIALIZER;
|
struct file fstore = STRUCT_FILE_INITIALIZER;
|
||||||
size_t file_size = 0; /* init here, to a avoid a false positive
|
int64_t file_size = 0; /* init here, to a avoid a false positive
|
||||||
"uninitialized variable used" warning */
|
"uninitialized variable used" warning */
|
||||||
|
|
||||||
int has_body_data =
|
int has_body_data =
|
||||||
|
Reference in New Issue
Block a user