ports/x11/xforward/files/patch-xforward.c
Cy Schubert e66cede3bc x11/xforward: Permanently fix LLVM15 build error
Permanently fix:

xforward.c:528:87: error: incompatible pointer to integer conversion passing 'void *' to parameter of type 'Cardinal' (aka 'unsigned int') [-Wint-conversion]
                        topshell = XtAppCreateShell(NULL,"Xforward",applicationShellWidgetClass, dpy, NULL,NULL);
                                                                                                           ^~~~
2023-02-15 08:55:01 -08:00

20 lines
796 B
C

--- xforward.c.orig 1993-06-04 19:30:16.000000000 -0700
+++ xforward.c 2023-02-14 20:42:29.724713000 -0800
@@ -292,7 +292,7 @@
struct timeval timeout;
struct pend_conn *cur,*prev;
pid_t temppid;
- union wait wstatus;
+ int wstatus;
int exitstat,wopts,newoutgoing;
/* for each entry, call waitpid */
@@ -525,7 +525,7 @@
app_con = XtCreateApplicationContext();
dpy = XtOpenDisplay(app_con,disp_str,NULL,"Xforward",
NULL,0,&argc,argv);
- topshell = XtAppCreateShell(NULL,"Xforward",applicationShellWidgetClass, dpy, NULL,NULL);
+ topshell = XtAppCreateShell(NULL,"Xforward",applicationShellWidgetClass, dpy, NULL, (Cardinal)NULL);
sprintf(dialog_message,"Allow X connection from %s ?",
okhost_names[i]);
msg_str = XmStringCreateSimple(dialog_message);