History

mac

Russ Cox committed 21 years ago

Commit 06b60291 parent e4f9a452 files · +5 −4Browse files

Unified · Split

2 files
  1. gui-x11/screen.c +2 −2
  2. kern/uart.c +3 −2
gui-x11/screen.c+2−2
@@ -999,7 +999,7 @@ _xgetsnarf(Display *xd) · 998 unmodified lines
999999 {
10001000 uchar *data, *xdata;
10011001 Atom clipboard, type, prop;
1002− ulong len, lastlen, dummy;
1002+ unsigned long len, lastlen, dummy;
10031003 int fmt, i;
10041004 Window w;
10051005
@@ -1067,7 +1067,7 @@ _xgetsnarf(Display *xd) · 61 unmodified lines
10671067 }
10681068 /* get the property */
10691069 data = nil;
1070− XGetWindowProperty(xd, xdrawable, prop, 0, SnarfSize/sizeof(ulong), 0,
1070+ XGetWindowProperty(xd, xdrawable, prop, 0, SnarfSize/sizeof(unsigned long), 0,
10711071 AnyPropertyType, &type, &fmt, &len, &dummy, &xdata);
10721072 if((type != XA_STRING && type != utf8string) || len == 0){
10731073 if(xdata)
kern/uart.c+3−2
@@ -4,11 +4,12 @@ · 3 unmodified lines
44 #include "fns.h"
55 #include "error.h"
66
7−#undef write
7+extern int panicking;
88 void
99 uartputs(char *s, int n)
1010 {
11−// write(1, s, n);
11+ if(panicking)
12+ write(1, s, n);
1213 }
1314
1415

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t