tSmall fixes - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 1ed1c638a8f5c8d1d3c624800448f44cee8d1a09
(DIR) parent 4f30f3b44464f9b89512224095474200390b03e9
(HTM) Author: rsc <devnull@localhost>
Date: Wed, 31 Mar 2004 01:01:24 +0000
Small fixes
Diffstat:
M bin/label | 11 ++++++++++-
M src/libdraw/x11-init.c | 3 +--
2 files changed, 11 insertions(+), 3 deletions(-)
---
(DIR) diff --git a/bin/label b/bin/label
t@@ -1,7 +1,16 @@
#!/bin/sh
+case `uname` in
+SunOS)
+ awk=nawk
+ ;;
+*)
+ awk=awk
+ ;;
+esac
+
label() {
- echo "$@" | awk '{printf("\033];%s\007", $0);}'
+ echo "$@" | $awk '{printf("\033];%s\007", $0);}'
}
label "$@"
(DIR) diff --git a/src/libdraw/x11-init.c b/src/libdraw/x11-init.c
t@@ -407,9 +407,8 @@ xattach(char *label)
r.max.x = wattr.width;
r.max.y = wattr.height;
}
- fprint(2, "new rect %dx%d\n", r.max.x, r.max.y);
}else
- fprint(2, "bad attrs\n");
+ fprint(2, "XGetWindowAttributes: bad attrs\n");
/*
* Allocate our local backing store.