1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/x11-wm/fvwm/files/patch-icons.c
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

12 lines
344 B
C

--- ./fvwm/icons.c.orig 1994-11-15 14:03:29.000000000 +0000
+++ ./fvwm/icons.c 2009-03-11 09:42:52.000000000 +0000
@@ -340,7 +340,7 @@
if(Tmp_win->flags & SUPPRESSICON)
return;
- if (Tmp_win->icon_w == (int)NULL)
+ if (Tmp_win->icon_w == 0)
return;
Tmp_win->icon_t_width = XTextWidth(IconFont->font,Tmp_win->icon_name,