]> xenbits.xensource.com Git - people/liuw/xen.git/commitdiff
golang/xenlight: fix calls to libxl_domain_unpause/pause
authorNick Rosbrook <rosbrookn@ainfosec.com>
Tue, 22 Oct 2019 14:06:59 +0000 (15:06 +0100)
committerGeorge Dunlap <george.dunlap@citrix.com>
Tue, 22 Oct 2019 14:06:59 +0000 (15:06 +0100)
These functions require a third argument of type const *libxl_asyncop_how.

Pass nil to fix compilation errors. This will have the effect of
performing these operations synchronously.

Signed-off-by: Nick Rosbrook <rosbrookn@ainfosec.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
tools/golang/xenlight/xenlight.go

index f5d171c2d55f76269e7de2cd29b963bfa341e89a..59b8186a64d46864bf1b37b0930abc93912abcd1 100644 (file)
@@ -1011,7 +1011,7 @@ func (Ctx *Context) DomainUnpause(Id Domid) (err error) {
                return
        }
 
-       ret := C.libxl_domain_unpause(Ctx.ctx, C.uint32_t(Id))
+       ret := C.libxl_domain_unpause(Ctx.ctx, C.uint32_t(Id), nil)
 
        if ret != 0 {
                err = Error(-ret)
@@ -1026,7 +1026,7 @@ func (Ctx *Context) DomainPause(id Domid) (err error) {
                return
        }
 
-       ret := C.libxl_domain_pause(Ctx.ctx, C.uint32_t(id))
+       ret := C.libxl_domain_pause(Ctx.ctx, C.uint32_t(id), nil)
 
        if ret != 0 {
                err = Error(-ret)