Skip to content

Commit

Permalink
[vchanmanager] Use server_init C API instead of libxenvchan_server_init
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksandr Grytsov <[email protected]>
  • Loading branch information
al1img committed Jan 26, 2024
1 parent 0d3fdc7 commit 8c98dc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vchanmanager/vchan.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 8c98dc9

Please sign in to comment.