g_wnd is not a pointer. Use 0 instead of NULL to avoid warnings.

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1548 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Peter Åstrand 2010-01-13 16:22:35 +00:00
parent 5b75525080
commit 28ba7a082a

4
xwin.c
View File

@ -2158,7 +2158,7 @@ ui_destroy_window(void)
XDestroyIC(g_IC);
XDestroyWindow(g_display, g_wnd);
g_wnd = NULL;
g_wnd = 0;
}
void
@ -2295,7 +2295,7 @@ xwin_process_events(void)
{
XNextEvent(g_display, &xevent);
if (g_wnd == NULL)
if (!g_wnd)
/* Ignore events between ui_destroy_window and ui_create_window */
continue;