aboutsummaryrefslogtreecommitdiff
path: root/nexgb/xgbgen/go_request_reply.go
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2014-05-10 11:41:51 -0400
committerPřemysl Janouch <p@janouch.name>2018-09-08 16:49:23 +0200
commitef8155bf17787473a58f00d54cfc8a7e16ee8708 (patch)
treec88a5feea3e109f82587ac76fd44cd2acd0ca68a /nexgb/xgbgen/go_request_reply.go
parenta548d9d0f7b889627c43b18811357fad88760b2d (diff)
downloadhaven-ef8155bf17787473a58f00d54cfc8a7e16ee8708.tar.gz
haven-ef8155bf17787473a58f00d54cfc8a7e16ee8708.tar.xz
haven-ef8155bf17787473a58f00d54cfc8a7e16ee8708.zip
Formatting and 80 cols.
Diffstat (limited to 'nexgb/xgbgen/go_request_reply.go')
-rw-r--r--nexgb/xgbgen/go_request_reply.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/nexgb/xgbgen/go_request_reply.go b/nexgb/xgbgen/go_request_reply.go
index d82e157..c1b9ee9 100644
--- a/nexgb/xgbgen/go_request_reply.go
+++ b/nexgb/xgbgen/go_request_reply.go
@@ -155,7 +155,8 @@ func (r *Request) WriteRequest(c *Context) {
return
}
c.Putln("b = xgb.Pad(b)")
- c.Putln("xgb.Put16(buf[blen:], uint16(b / 4)) // write request size in 4-byte units")
+ c.Putln("xgb.Put16(buf[blen:], uint16(b / 4)) " +
+ "// write request size in 4-byte units")
c.Putln("return buf[:b]")
}
c.Putln("// Write request to wire for %s", r.SrcName())