summaryrefslogtreecommitdiff
path: root/comms/nec2c/files/patch-nec2c.h
diff options
context:
space:
mode:
authorDiane Bruce <db@FreeBSD.org>2012-06-05 19:23:38 +0000
committerDiane Bruce <db@FreeBSD.org>2012-06-05 19:23:38 +0000
commit1534767a3735aa0afce683fde4e0703faac2407c (patch)
treedab7303b121a3bafd27c633116234b416e1e1bfc /comms/nec2c/files/patch-nec2c.h
parentSwitch to OptionsNG (diff)
- Fix comms/nec2c for large allocations
PR: ports/168448 Submitted by: doconnor@gsoft.com.au
Diffstat (limited to 'comms/nec2c/files/patch-nec2c.h')
-rw-r--r--comms/nec2c/files/patch-nec2c.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/comms/nec2c/files/patch-nec2c.h b/comms/nec2c/files/patch-nec2c.h
new file mode 100644
index 000000000000..416e9acd8acc
--- /dev/null
+++ b/comms/nec2c/files/patch-nec2c.h
@@ -0,0 +1,13 @@
+--- nec2c.h.orig 2012-06-05 13:34:14.000000000 -0500
++++ nec2c.h 2012-06-05 13:34:45.000000000 -0500
+@@ -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);