From 7715bc122c8486808860c54889d82ba2c3e88de4 Mon Sep 17 00:00:00 2001 From: Minizbot2012 Date: Wed, 28 Jul 2021 02:23:37 -0400 Subject: [PATCH] xdr: use type not variable --- devices/devices_xdr.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devices/devices_xdr.go b/devices/devices_xdr.go index 4772978..633e751 100644 --- a/devices/devices_xdr.go +++ b/devices/devices_xdr.go @@ -30,7 +30,7 @@ func init() { func LoadKeymap(file string, dev *DeviceDef) *KeyMap { mapped := new(KeyMap) of, _ := os.Open(file) - xdr.Unmarshal(of, KeyMap) + xdr.Unmarshal(of, mapped) return mapped }