From 98531b13033b9f88b44aa0b503c5c86c3e05b526 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Wed, 7 Apr 2021 03:32:26 +0300 Subject: [PATCH 18/18] xaw menu.c: Use INT_TO_XTPOINTER to cast between integer and pointer See osdn #41933 Signed-off-by: Marko Lindqvist --- client/gui-xaw/menu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/gui-xaw/menu.c b/client/gui-xaw/menu.c index 6b6350f208..5ea4c731eb 100644 --- a/client/gui-xaw/menu.c +++ b/client/gui-xaw/menu.c @@ -1170,10 +1170,10 @@ void create_menu(enum MenuIndex menu, char *name, struct MenuEntry entries[], mymenu->shell, NULL, 0); } else { xlt=menu_entry_text(menu, i, 0, ""); - entries[i].w = XtCreateManagedWidget(xlt, smeBSBObjectClass, - mymenu->shell, NULL, 0); - XtAddCallback(entries[i].w, XtNcallback, menucallback, - (XtPointer)entries[i].id ); + entries[i].w = XtCreateManagedWidget(xlt, smeBSBObjectClass, + mymenu->shell, NULL, 0); + XtAddCallback(entries[i].w, XtNcallback, menucallback, + INT_TO_XTPOINTER(entries[i].id)); } } -- 2.30.2