golang/xenlight: Fixing compilation for go 1.11
authorDaniel P. Smith <dpsmith.dev@gmail.com>
Thu, 18 Jul 2019 21:11:44 +0000 (22:11 +0100)
committerGeorge Dunlap <george.dunlap@citrix.com>
Thu, 18 Jul 2019 21:11:44 +0000 (22:11 +0100)
commit643d8e566de59f247556e62a27ed7a5ac2e8a8cf
tree2fc6e144f868ed8861d3391c00fb5f1b2eeed285
parent0b18a93a340336b27335ab7bbcd920afea28f3bd
golang/xenlight: Fixing compilation for go 1.11

This deals with two casting issues for compiling under go 1.11:
- explicitly cast to *C.xentoollog_logger for Ctx.logger pointer
- add cast to unsafe.Pointer for the C string cpath

Signed-off-by: Daniel P. Smith <dpsmith@apertussolutions.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
tools/golang/xenlight/xenlight.go