tinttypes - plan9port - [fork] Plan 9 from user space
HTML git clone git://src.adamsgaard.dk/plan9port
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit c9ee9e62f63bb875d2e49c455cbba97fc471b814
DIR parent c291b2ec819db0e168bbd1f667e313e3588c49be
HTML Author: rsc <devnull@localhost>
Date: Thu, 20 Apr 2006 21:52:17 +0000
inttypes
Diffstat:
M src/cmd/rio/manage.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
DIR diff --git a/src/cmd/rio/manage.c b/src/cmd/rio/manage.c
t@@ -5,6 +5,7 @@
/* Copyright (c) 1994-1996 David Hogan, see README for licence details */
#include <stdio.h>
#include <stdlib.h>
+#include <inttypes.h>
#include <X11/X.h>
#include <X11/Xos.h>
#include <X11/Xlib.h>
t@@ -471,7 +472,7 @@ get1prop(Window w, Atom a, Atom type)
return 0;
x = *p;
XFree((void*) p);
- return (int)(uintptr)x;
+ return (int)(uintptr_t)x;
}
Window