]> git.seodisparate.com - c_simple_http/commitdiff
backport: Fix type set "extra" var on string part
authorStephen Seo <seo.disparate@gmail.com>
Wed, 25 Sep 2024 04:28:42 +0000 (13:28 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Wed, 25 Sep 2024 04:29:13 +0000 (13:29 +0900)
src/helpers.c
src/helpers.h

index bf3a6fddf648237ce5c79d7a64fcc497715cfd2c..b391e22a5b0fd82cb57993ee21919cd24dc77164 100644 (file)
@@ -76,7 +76,7 @@ void c_simple_http_cleanup_string_part(void *data) {
 }
 
 void c_simple_http_add_string_part(
-    SDArchiverLinkedList *list, const char *c_string, size_t extra) {
+    SDArchiverLinkedList *list, const char *c_string, uintptr_t extra) {
   C_SIMPLE_HTTP_String_Part *string_part =
     malloc(sizeof(C_SIMPLE_HTTP_String_Part));
 
index 137bf06076197575527caf1fd866085047724242..bd649d9151424a2152766e77070c1fbb348299c6 100644 (file)
@@ -39,7 +39,7 @@ void c_simple_http_cleanup_string_part(void *data);
 /// Puts a malloced instance of String_Part into the list.
 /// The given c_string will be copied into a newly malloced buffer.
 void c_simple_http_add_string_part(
-  SDArchiverLinkedList *list, const char *c_string, size_t extra);
+  SDArchiverLinkedList *list, const char *c_string, uintptr_t extra);
 
 /// Combines all String_Parts in the list and returns it as a single buffer.
 char *c_simple_http_combine_string_parts(const SDArchiverLinkedList *list);