nexgb: gofmt

This commit is contained in:
Přemysl Eric Janouch 2018-09-21 08:35:18 +02:00
parent 07bf9881cc
commit 1a53c005e9
Signed by: p
GPG Key ID: A0420B94F92B9493
2 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@ func (c *Context) Morph(xmlBytes []byte) {
// Translate XML types to nice types
c.protocol = parsedXml.Translate(nil)
// For backwards compatibility we patch the type of the send_event field of
// PutImage to be byte
if c.protocol.Name == "shm" {
@ -62,7 +62,7 @@ func (c *Context) Morph(xmlBytes []byte) {
if !ok || field.xmlName != "send_event" {
continue
}
field.Type = &Base{ srcName: "byte", xmlName: "CARD8", size: newFixedSize(1, true) }
field.Type = &Base{srcName: "byte", xmlName: "CARD8", size: newFixedSize(1, true)}
}
}
}

View File

@ -9,7 +9,7 @@ type XMLField struct {
XMLName xml.Name
// For 'pad' element
Bytes uint `xml:"bytes,attr"`
Bytes uint `xml:"bytes,attr"`
Align uint16 `xml:"align,attr"`
// For 'field', 'list', 'localfield', 'exprfield' and 'switch' elements.