aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'rpython/rlib/_rsocket_rffi.py')
-rw-r--r--rpython/rlib/_rsocket_rffi.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpython/rlib/_rsocket_rffi.py b/rpython/rlib/_rsocket_rffi.py
index 7eacf28f81..7a2b1bb91f 100644
--- a/rpython/rlib/_rsocket_rffi.py
+++ b/rpython/rlib/_rsocket_rffi.py
@@ -924,7 +924,7 @@ if HAVE_SENDMSG:
These functions free memory that was allocated in C (sendmsg or recvmsg) was used in rsocket and now needs cleanup
*/
RPY_EXTERN
- int free_pointer_to_signedp(int** ptrtofree){
+ int free_pointer_to_signedp(long** ptrtofree){
free(*ptrtofree);
return 0;
}
@@ -958,7 +958,7 @@ if HAVE_SENDMSG:
"RPY_EXTERN "
"int memcpy_from_CCHARP_at_offset_and_size(char* stringfrom, char** stringto, int offset, int size);\n"
"RPY_EXTERN "
- "int free_pointer_to_signedp(int** ptrtofree);\n"
+ "int free_pointer_to_signedp(long** ptrtofree);\n"
"RPY_EXTERN "
"int free_ptr_to_charp(char** ptrtofree);\n"
]