mirror of
https://git.freebsd.org/ports.git
synced 2025-06-18 19:20:36 -04:00
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); ^~~~
20 lines
796 B
C
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);
|