FreeBSD Bugzilla – Attachment 124925 Details for
Bug 168448
Fix comms/nec2c for large allocations
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1018 bytes, created by
Daniel O'Connor
on 2012-05-30 03:10:02 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Daniel O'Connor
Created:
2012-05-30 03:10:02 UTC
Size:
1018 bytes
patch
obsolete
>--- nec2c.h.orog 2012-05-30 11:24:48.244764209 +0930 >+++ nec2c.h 2012-05-30 11:28:37.629611161 +0930 >@@ -201,8 +201,8 @@ > void secnds(double *x); > int stop(int flag); > int load_line(char *buff, FILE *pfile); >-void mem_alloc( void **ptr, int req ); >-void mem_realloc( void **ptr, int req ); >+void mem_alloc( void **ptr, size_t req ); >+void mem_realloc( void **ptr, size_t req ); > void free_ptr( void **ptr ); > /* somnec.c */ > void somnec(double epr, double sig, double fmhz); >--- misc.c.orig 2012-05-30 11:24:37.104486809 +0930 >+++ misc.c 2012-05-30 11:28:23.285245834 +0930 >@@ -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 )
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 168448
: 124925