1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

deskutils/xpostit: fix integer/pointer compile error

Recent compiler versions complain about the implicit conversion
of an int to a (generic) pointer, apply appropriate cast.

(This is 30-year old code.)
This commit is contained in:
Joerg Wunsch 2023-02-13 23:49:08 +01:00
parent 97400f86dc
commit bdcf7e2930
2 changed files with 12 additions and 1 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= xpostit
PORTVERSION= 3.3.1
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= deskutils
MASTER_SITES= SF/${PORTNAME}/${PORTVERSION}
# DISTNAME= ${PORTNAME}${PORTVERSION:S/.//g}

View File

@ -0,0 +1,11 @@
--- menu.c~ 1992-12-11 14:04:14.000000000 +0100
+++ menu.c 2023-02-13 23:44:16.137102000 +0100
@@ -120,7 +120,7 @@
smeBSBObjectClass, menuwidget,
NULL, 0);
- XtAddCallback(entry, XtNcallback, HandleMenuSelection, i);
+ XtAddCallback(entry, XtNcallback, HandleMenuSelection, (XtPointer)i);
}
XawSimpleMenuAddGlobalActions(appcontext);