summaryrefslogtreecommitdiff
path: root/app/xclock
diff options
context:
space:
mode:
authorDavid Coppa <dcoppa@cvs.openbsd.org>2010-07-30 05:35:59 +0000
committerDavid Coppa <dcoppa@cvs.openbsd.org>2010-07-30 05:35:59 +0000
commit3fd16bb044558e1fcb7ae5862973f045347ebbf2 (patch)
tree6fc0642f899365895bf63f43b91611b34538e4a1 /app/xclock
parenta4f320765aa15b5faf23cb6d1c7634ad492d21b4 (diff)
Cast "pid" as unsigned long to avoid a bus error on sparc64.
OK matthieu@
Diffstat (limited to 'app/xclock')
-rw-r--r--app/xclock/xclock.c2
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,