win/X11 lint

This commit is contained in:
PatR
2016-02-13 10:58:44 -08:00
parent 3b4f2fbfa7
commit 962b3e43f4
3 changed files with 23 additions and 16 deletions

View File

@@ -1,4 +1,4 @@
/* NetHack 3.6 winX.c $NHDT-Date: 1454977918 2016/02/09 00:31:58 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.39 $ */
/* NetHack 3.6 winX.c $NHDT-Date: 1455389907 2016/02/13 18:58:27 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.40 $ */
/* Copyright (c) Dean Luick, 1992 */
/* NetHack may be freely redistributed. See license for details. */
@@ -225,10 +225,12 @@ find_free_window()
* This is an attempt to find some close readonly cell and use it.
*/
XtConvertArgRec const nhcolorConvertArgs[] = {
{ XtWidgetBaseOffset, (XtPointer) XtOffset(Widget, core.screen),
sizeof(Screen *) },
{ XtWidgetBaseOffset, (XtPointer) XtOffset(Widget, core.colormap),
sizeof(Colormap) }
{ XtWidgetBaseOffset,
(XtPointer) (ptrdiff_t) XtOffset(Widget, core.screen),
sizeof (Screen *) },
{ XtWidgetBaseOffset,
(XtPointer) (ptrdiff_t) XtOffset(Widget, core.colormap),
sizeof (Colormap) }
};
#define done(type, value) \