aboutsummaryrefslogtreecommitdiff
path: root/nexgb/auth.go
diff options
context:
space:
mode:
authorAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-05-03 22:47:50 -0400
committerAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-05-03 22:47:50 -0400
commita5d4ad6c9d763b3d3f797075038023756c38bb28 (patch)
treeac8ef57ce2385ebe0ba2e112ad081a86241403d5 /nexgb/auth.go
parent5cdae5950c357564300c0ee3fb4dc9e7bbf4946b (diff)
downloadhaven-a5d4ad6c9d763b3d3f797075038023756c38bb28.tar.gz
haven-a5d4ad6c9d763b3d3f797075038023756c38bb28.tar.xz
haven-a5d4ad6c9d763b3d3f797075038023756c38bb28.zip
reworking xgb. cleaned up connection stuff a little. making new xid generation cleaner and use goroutines for it.
Diffstat (limited to 'nexgb/auth.go')
-rw-r--r--nexgb/auth.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/nexgb/auth.go b/nexgb/auth.go
index 355afeb..ac43e07 100644
--- a/nexgb/auth.go
+++ b/nexgb/auth.go
@@ -44,8 +44,10 @@ func getString(r io.Reader, b []byte) (string, error) {
// readAuthority reads the X authority file for the DISPLAY.
// If hostname == "" or hostname == "localhost",
-// readAuthority uses the system's hostname (as returned by os.Hostname) instead.
-func readAuthority(hostname, display string) (name string, data []byte, err error) {
+// then use the system's hostname (as returned by os.Hostname) instead.
+func readAuthority(hostname, display string) (
+ name string, data []byte, err error) {
+
// b is a scratch buffer to use and should be at least 256 bytes long
// (i.e. it should be able to hold a hostname).
var b [256]byte