You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-text/rpl/files/rpl-1.4.0-gcc4.patch

20 lines
949 B

diff -Naur rpl-1.4.0-clean/src/replace.h rpl-1.4.0/src/replace.h
--- rpl-1.4.0-clean/src/replace.h 2002-07-24 10:41:45.000000000 -0500
+++ rpl-1.4.0/src/replace.h 2006-02-19 16:38:32.000000000 -0500
@@ -77,7 +77,7 @@
/* This is a simple macro to call malloc() and die if it returns null */
#define MALLOC_FAIL_STRING ("\n" PACKAGE " Unable to allocate memory!")
-#define MALLOC_AND_CHECK( x, y ) (void*)(x)=malloc((y));if(x==NULL){fprintf(stderr,"\n%s --> %s:%d\n", MALLOC_FAIL_STRING, __FILE__, __LINE__ );exit(EX_OSERR);}
+#define MALLOC_AND_CHECK( x, y ) (x)=malloc((y));if(x==NULL){fprintf(stderr,"\n%s --> %s:%d\n", MALLOC_FAIL_STRING, __FILE__, __LINE__ );exit(EX_OSERR);}
/* Function Prototypes */
@@ -90,4 +90,4 @@
static void EchoFeedback(int, int, int, char*);
-static void SetPerms(struct stat, int, int, char*, int* );
\ No newline at end of file
+static void SetPerms(struct stat, int, int, char*, int* );