File xtexit-gcc14.patch of Package xtexit

--- xtexit.c	2000-05-31 00:02:21
+++ xtexit.c	2024-11-06 07:58:06.684561955 +0000
@@ -1,5 +1,5 @@
 #ifndef lint
-static char *RCSid = "@(#)$Id: xmexit.c,v 2.0 90/04/09 10:03:42 tot Exp $";
+static const char *RCSid = "@(#)$Id: xmexit.c,v 2.0 90/04/09 10:03:42 tot Exp $";
 #endif /* not lint */
 
 /* Program to shut down X server. Based on xmexit by Teemu Torma.
@@ -34,10 +34,12 @@
 #include <X11/X.h>
+#include <X11/Xlibint.h>
 #include <X11/Intrinsic.h>
 #include <X11/StringDefs.h>
 #include <X11/Xatom.h>
 #include <X11/Xproto.h>
 #include <X11/Xaw/Dialog.h>
 #include <X11/Shell.h>
 #include <stdio.h>
 #include <signal.h>
+#include <stdlib.h>
 #include "xtexit.h"
 
 /* Application resources. */
@@ -84,7 +86,9 @@
 /* Translations */
-
-static void KeyConfirm(), KeyCancel();
+ /* Proper prototypes for action functions to satisfy modern compilers */
+static void KeyConfirm(Widget w, XEvent *event, String *params, Cardinal *num_params);
+static void KeyCancel(Widget w, XEvent *event, String *params, Cardinal *num_params);
 
 static char defaultTranslations[] =
   "<Key> Return:   confirm()\\n\\
    <Key> Escape:   cancel()";
@@ -482,7 +486,7 @@
 static void
 KeyConfirm (w, event, params, num_params)
 Widget w;
-XExposeEvent *event;
+XEvent *event;
 String *params;
 Cardinal *num_params;
@@ -508,7 +512,7 @@
 static void
 KeyCancel (w, event, params, num_params)
 Widget w;
-XExposeEvent *event;
+XEvent *event;
 String *params;
 Cardinal *num_params;
openSUSE Build Service is sponsored by