xdr: fix imports and readdile

mini 3 years ago
parent 8432fa48d1
commit 2b9161a874

@ -8,7 +8,6 @@ import (
xdr "github.com/davecgh/go-xdr/xdr2" xdr "github.com/davecgh/go-xdr/xdr2"
"io" "io"
"io/fs" "io/fs"
"os"
"strings" "strings"
) )
@ -29,7 +28,7 @@ func init() {
//LoadKeymap Load Orbmap KM structure //LoadKeymap Load Orbmap KM structure
func LoadKeymap(file io.ReadCloser, dev *DeviceDef) *KeyMap { func LoadKeymap(file io.ReadCloser, dev *DeviceDef) *KeyMap {
mapped := new(KeyMap) mapped := new(KeyMap)
xdr.Unmarshal(of, mapped) xdr.Unmarshal(file, mapped)
return mapped return mapped
} }

Loading…
Cancel
Save