aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-05-07 01:11:41 -0400
committerAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-05-07 01:11:41 -0400
commit3bf376bd6648e011de9131c1d90a39c6d3890d65 (patch)
tree6432af8b8dddc03ac88845dadaf24f42a77ce268
parentfd30f1512a713ae5b3cbacddfe9f29dfccc82047 (diff)
downloadhaven-3bf376bd6648e011de9131c1d90a39c6d3890d65.tar.gz
haven-3bf376bd6648e011de9131c1d90a39c6d3890d65.tar.xz
haven-3bf376bd6648e011de9131c1d90a39c6d3890d65.zip
80 cols
-rw-r--r--nexgb/xgb.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/nexgb/xgb.go b/nexgb/xgb.go
index 223b6e2..581b8fa 100644
--- a/nexgb/xgb.go
+++ b/nexgb/xgb.go
@@ -53,10 +53,10 @@ func NewConn() (*Conn, error) {
// If 'display' is empty it will be taken from os.Getenv("DISPLAY").
//
// Examples:
-// NewConn(":1") -> net.Dial("unix", "", "/tmp/.X11-unix/X1")
-// NewConn("/tmp/launch-123/:0") -> net.Dial("unix", "", "/tmp/launch-123/:0")
-// NewConn("hostname:2.1") -> net.Dial("tcp", "", "hostname:6002")
-// NewConn("tcp/hostname:1.0") -> net.Dial("tcp", "", "hostname:6001")
+// NewConn(":1") -> net.Dial("unix", "", "/tmp/.X11-unix/X1")
+// NewConn("/tmp/launch-123/:0") -> net.Dial("unix", "", "/tmp/launch-123/:0")
+// NewConn("hostname:2.1") -> net.Dial("tcp", "", "hostname:6002")
+// NewConn("tcp/hostname:1.0") -> net.Dial("tcp", "", "hostname:6001")
func NewConnDisplay(display string) (*Conn, error) {
conn := &Conn{}
@@ -405,7 +405,8 @@ func (c *Conn) readResponses() {
fmt.Fprintf(os.Stderr,
"Found cookie with sequence id %d that is expecting a "+
"reply (and not an error) but will never get it. "+
- "Currently on sequence number %d\n", cookie.Sequence, seq)
+ "Currently on sequence number %d\n",
+ cookie.Sequence, seq)
// Checked requests without replies
case cookie.pingChan != nil && cookie.errorChan != nil:
cookie.pingChan <- true