xdr: use type not variable

Minizbot2012 3 years ago
parent aac377392f
commit 7715bc122c

@ -30,7 +30,7 @@ func init() {
func LoadKeymap(file string, dev *DeviceDef) *KeyMap { func LoadKeymap(file string, dev *DeviceDef) *KeyMap {
mapped := new(KeyMap) mapped := new(KeyMap)
of, _ := os.Open(file) of, _ := os.Open(file)
xdr.Unmarshal(of, KeyMap) xdr.Unmarshal(of, mapped)
return mapped return mapped
} }

Loading…
Cancel
Save