From 7bc1a238ed94cf88b4e3ec153420c7108c62aac2 Mon Sep 17 00:00:00 2001 From: TonyChyi Date: Tue, 20 Mar 2018 10:06:14 +0800 Subject: [PATCH] fix fu*K bugs --- backend/alsa_wrapper/alsa_wrapper.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/alsa_wrapper/alsa_wrapper.go b/backend/alsa_wrapper/alsa_wrapper.go index 02c5023..c84c20d 100644 --- a/backend/alsa_wrapper/alsa_wrapper.go +++ b/backend/alsa_wrapper/alsa_wrapper.go @@ -18,7 +18,7 @@ import ( func NewClient(name string) error { cDevName := C.CString(name) defer C.free(unsafe.Pointer(cDevName)) - status = int(C.new_client(cDevName)) + var status = int(C.new_client(cDevName)) if status != 0 { stage, errCode := resolveErrCode(status) switch stage { @@ -36,7 +36,7 @@ func NewClient(name string) error { func NewPort(name string) error { cPortName := C.CString(name) defer C.free(unsafe.Pointer(cPortName)) - status = int(C.new_port(cPortName)) + var status = int(C.new_port(cPortName)) if status != 0 { return fmt.Errorf("Error while createing sequencer port. %d", status) }