xdr: use type not variable

main
Minizbot2012 3 years ago
parent 3d4b93f48b
commit 3e5f9691e0
No known key found for this signature in database
GPG Key ID: 977C8ADE12361917

@ -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