From 1a53c005e95c6db33160da9cddae2bde88c8d1ca Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Fri, 21 Sep 2018 08:35:18 +0200 Subject: nexgb: gofmt --- nexgb/xgbgen/context.go | 4 ++-- nexgb/xgbgen/xml_fields.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'nexgb/xgbgen') diff --git a/nexgb/xgbgen/context.go b/nexgb/xgbgen/context.go index 8c658e6..579c480 100644 --- a/nexgb/xgbgen/context.go +++ b/nexgb/xgbgen/context.go @@ -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)} } } } diff --git a/nexgb/xgbgen/xml_fields.go b/nexgb/xgbgen/xml_fields.go index 8b7b5c7..b72159b 100644 --- a/nexgb/xgbgen/xml_fields.go +++ b/nexgb/xgbgen/xml_fields.go @@ -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. -- cgit v1.2.3-70-g09d2