From 8c98dc962e080bae3ee8bae23d5e4599d4f9c2c5 Mon Sep 17 00:00:00 2001 From: Oleksandr Grytsov Date: Wed, 24 Jan 2024 14:44:03 +0200 Subject: [PATCH] [vchanmanager] Use server_init C API instead of libxenvchan_server_init Signed-off-by: Oleksandr Grytsov --- vchanmanager/vchan.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vchanmanager/vchan.go b/vchanmanager/vchan.go index 70524c4..6314c65 100644 --- a/vchanmanager/vchan.go +++ b/vchanmanager/vchan.go @@ -302,7 +302,7 @@ func (v *VChan) initVchan(domain int, xsPath string) (*C.struct_libxenvchan, err // To address Golang's inability to access bitfields in C structures, // it is necessary to use server_init() instead of libxenvchan_server_init(). - vchan, err := C.libxenvchan_server_init(nil, C.int(domain), cstr, 0, 0) + vchan, err := C.server_init(C.int(domain), cstr) if vchan == nil { return nil, aoserrors.Errorf("libxenvchan_server_init failed: %v", err) }