diff options
author | dinoex <dinoex@FreeBSD.org> | 2009-03-15 04:10:23 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2009-03-15 04:10:23 +0800 |
commit | 97dc819b246b1e19b4e639fe8400fbda650c88ec (patch) | |
tree | 66fa91afc694a37896dce37c3778bde452f6ada9 /x11-wm/fvwm/files/patch-FvwmWinList-Mallocs.h | |
parent | 021e90e20d52896ceac9992406d4d422275088b9 (diff) | |
download | freebsd-ports-gnome-97dc819b246b1e19b4e639fe8400fbda650c88ec.tar.gz freebsd-ports-gnome-97dc819b246b1e19b4e639fe8400fbda650c88ec.tar.zst freebsd-ports-gnome-97dc819b246b1e19b4e639fe8400fbda650c88ec.zip |
- 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
Diffstat (limited to 'x11-wm/fvwm/files/patch-FvwmWinList-Mallocs.h')
-rw-r--r-- | x11-wm/fvwm/files/patch-FvwmWinList-Mallocs.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/x11-wm/fvwm/files/patch-FvwmWinList-Mallocs.h b/x11-wm/fvwm/files/patch-FvwmWinList-Mallocs.h new file mode 100644 index 000000000000..36c86a1bbb18 --- /dev/null +++ b/x11-wm/fvwm/files/patch-FvwmWinList-Mallocs.h @@ -0,0 +1,13 @@ +--- ./modules/FvwmWinList/Mallocs.h.orig 1994-09-14 14:11:34.000000000 +0000 ++++ ./modules/FvwmWinList/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 CopyString(char **dest, char *source); |