freebsd-ports/games/adgali/files/patch-src_agl_main.c
Martin Wilke 70e8b85a57 - Fix build with gcc 4.2
- Pass maintainership to submitter

PR:		118633
Submitted by:	Pietro Cerutti <gahr@gahr.ch>
2007-12-14 19:08:27 +00:00

12 lines
397 B
C

--- src/agl_main.c.orig 2007-12-12 23:45:13.000000000 +0100
+++ src/agl_main.c 2007-12-12 23:47:00.000000000 +0100
@@ -65,7 +65,8 @@
if (agl_initparachute() < 0)
return -1;
- *phandle = (agl_handle) handle = (agl_container *) agl_malloc(sizeof(agl_container));
+ handle = agl_malloc(sizeof(agl_container));
+ *phandle = (agl_container *)handle;
if (*phandle == NULL)
{
agl_memerr();