[lxc-devel] [go-lxc/v2] Fixed undefined: go_lxc_config_item_is_supported

soffokl on Github lxc-bot at linuxcontainers.org
Thu May 4 05:48:58 UTC 2017


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 414 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20170504/43c708ce/attachment.bin>
-------------- next part --------------
From 7173bc106a2a97a1b734332bcaefee8a3e788780 Mon Sep 17 00:00:00 2001
From: Dmitry Shihovtsev <soffokulus at gmail.com>
Date: Thu, 4 May 2017 11:47:16 +0600
Subject: [PATCH] Fixed undefined: go_lxc_config_item_is_supported

---
 lxc-binding.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxc-binding.go b/lxc-binding.go
index 986b9ef..71d6cd6 100644
--- a/lxc-binding.go
+++ b/lxc-binding.go
@@ -231,5 +231,5 @@ func VersionAtLeast(major int, minor int, micro int) bool {
 func IsSupportedConfigItem(key string) bool {
 	configItem := C.CString(key)
 	defer C.free(unsafe.Pointer(configItem))
-	return go_lxc_config_item_is_supported(configItem)
+	return bool(C.go_lxc_config_item_is_supported(configItem))
 }


More information about the lxc-devel mailing list