diff options
author | Joerg Wunsch <joerg@FreeBSD.org> | 2023-02-13 22:49:08 +0000 |
---|---|---|
committer | Joerg Wunsch <joerg@FreeBSD.org> | 2023-02-13 22:50:38 +0000 |
commit | bdcf7e293085355b046b5a334251a080c32edca3 (patch) | |
tree | 69d41f5c649c00484ae0b851e630d10ea8c251af /deskutils/xpostit/files | |
parent | 97400f86dcca45ff2a6c1e60d5f47f613fb2782f (diff) | |
download | ports-bdcf7e293085355b046b5a334251a080c32edca3.tar.gz ports-bdcf7e293085355b046b5a334251a080c32edca3.zip |
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.)
Diffstat (limited to 'deskutils/xpostit/files')
-rw-r--r-- | deskutils/xpostit/files/patch-menu.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/deskutils/xpostit/files/patch-menu.c b/deskutils/xpostit/files/patch-menu.c new file mode 100644 index 000000000000..5ee09fc8d7d8 --- /dev/null +++ b/deskutils/xpostit/files/patch-menu.c @@ -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); |