diff options
author | David Coppa <dcoppa@cvs.openbsd.org> | 2010-07-30 05:35:59 +0000 |
---|---|---|
committer | David Coppa <dcoppa@cvs.openbsd.org> | 2010-07-30 05:35:59 +0000 |
commit | 3fd16bb044558e1fcb7ae5862973f045347ebbf2 (patch) | |
tree | 6fc0642f899365895bf63f43b91611b34538e4a1 /app | |
parent | a4f320765aa15b5faf23cb6d1c7634ad492d21b4 (diff) |
Cast "pid" as unsigned long to avoid a bus error on sparc64.
OK matthieu@
Diffstat (limited to 'app')
-rw-r--r-- | app/xclock/xclock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/xclock/xclock.c b/app/xclock/xclock.c index 6b80ad0ae..0795b3e8b 100644 --- a/app/xclock/xclock.c +++ b/app/xclock/xclock.c @@ -215,7 +215,7 @@ main(int argc, char *argv[]) #ifdef HAVE_GETPID { - pid_t pid = getpid(); + unsigned long pid = (unsigned long) getpid(); XChangeProperty(XtDisplay(toplevel), XtWindow(toplevel), XInternAtom(XtDisplay(toplevel), "_NET_WM_PID", False), XA_CARDINAL, 32, PropModeReplace, |