openbsd-ports/x11/xfm/patches/patch-src_FmMain_c
2016-01-28 13:30:02 +00:00

22 lines
838 B
Plaintext

$OpenBSD: patch-src_FmMain_c,v 1.4 2016/01/28 13:30:02 sthen Exp $
--- src/FmMain.c.orig Thu Aug 23 13:45:26 2001
+++ src/FmMain.c Thu Jan 28 13:29:42 2016
@@ -353,7 +353,7 @@ int shell_test(UserInfo *ui)
perror("(child) Can't close pipe");
exit(1);
}
- execlp(ui->shell, ui->shell, "-c", "echo $*", "1", NULL);
+ execlp(ui->shell, ui->shell, "-c", "echo $*", "1", (void *)NULL);
perror("Exec failed");
exit(1);
} else { /* parent; read and check the child's output */
@@ -655,7 +655,7 @@ int main(int argc, char *argv[])
/* create a dummy window to store the WM_COMMAND property */
XtVaSetValues(aw.shell,
XtNmappedWhenManaged,False,
- 0);
+ (void *)NULL);
}
/* still realize and set the WM properties. the WM needs
* a window around and kwm is even able to restart an app