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:
parent
97400f86dc
commit
bdcf7e2930
@ -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}
|
||||
|
11
deskutils/xpostit/files/patch-menu.c
Normal file
11
deskutils/xpostit/files/patch-menu.c
Normal 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);
|
Loading…
Reference in New Issue
Block a user