1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-29 10:18:30 +00:00
freebsd-ports/comms/nec2c/files/patch-misc.c
Diane Bruce 1534767a37 - Fix comms/nec2c for large allocations
PR:		ports/168448
Submitted by:	doconnor@gsoft.com.au
2012-06-05 19:23:38 +00:00

21 lines
540 B
C

--- misc.c.orig 2012-06-05 13:35:29.000000000 -0500
+++ misc.c 2012-06-05 13:36:34.000000000 -0500
@@ -192,7 +192,7 @@
/*** Memory allocation/freeing utils ***/
-void mem_alloc( void **ptr, int req )
+void mem_alloc( void **ptr, size_t req )
{
free_ptr( ptr );
*ptr = malloc( req );
@@ -203,7 +203,7 @@
/*------------------------------------------------------------------------*/
-void mem_realloc( void **ptr, int req )
+void mem_realloc( void **ptr, size_t req )
{
*ptr = realloc( *ptr, req );
if( *ptr == NULL )