ref: 06b60293ad32c72b3ee5809d47a4c8ed83776d4a
parent: e4f9a4578a50e9b6694514e7c94004f4b82f6eab
author: Russ Cox <rsc@swtch.com>
date: Wed Nov 2 10:21:51 EST 2005
mac
--- a/gui-x11/screen.c
+++ b/gui-x11/screen.c
@@ -999,7 +999,7 @@
{
uchar *data, *xdata;
Atom clipboard, type, prop;
- ulong len, lastlen, dummy;
+ unsigned long len, lastlen, dummy;
int fmt, i;
Window w;
@@ -1067,7 +1067,7 @@
}
/* get the property */
data = nil;
- XGetWindowProperty(xd, xdrawable, prop, 0, SnarfSize/sizeof(ulong), 0,
+ XGetWindowProperty(xd, xdrawable, prop, 0, SnarfSize/sizeof(unsigned long), 0,
AnyPropertyType, &type, &fmt, &len, &dummy, &xdata);
if((type != XA_STRING && type != utf8string) || len == 0){
if(xdata)
--- a/kern/uart.c
+++ b/kern/uart.c
@@ -4,11 +4,12 @@
#include "fns.h"
#include "error.h"
-#undef write
+extern int panicking;
void
uartputs(char *s, int n)
{
-// write(1, s, n);
+ if(panicking)
+ write(1, s, n);
}