1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-21 08:42:23 +00:00
freebsd-ports/x11-wm/fvwm/files/patch-FvwmBacker-Mallocs.h
Dirk Meyer ee1fdf1921 - make fvwm compile w/o Warnings apart from one usage of mkstemp
by adding needed #includes, adding return statements to
 non-void functions and declaring functions returning a int
 instead of void if they do return an return code.
- start using one central safemalloc.
- do not mangle pointers which makes FvwmWinList work on
  amd64/7-STABLE again.
PR:		132571
Submitted by:	Bjoern A. Zeeb
2009-03-14 20:10:23 +00:00

14 lines
498 B
C

--- ./modules/FvwmBacker/Mallocs.h.orig 1994-09-14 19:59:18.000000000 +0000
+++ ./modules/FvwmBacker/Mallocs.h 2009-03-11 09:42:48.000000000 +0000
@@ -18,8 +18,9 @@
* own risk. Permission to use this program for any purpose is given,
* as long as the copyright is kept intact. */
+#include "../../libs/fvwmlib.h"
+
/* Function Prototypes */
-char *safemalloc(int length);
char *saferealloc(char *ptr, int length);
void sleep_a_little(int n);
void UpdateString(char **string,char *value);