aboutsummaryrefslogtreecommitdiffhomepage
path: root/xcb
diff options
context:
space:
mode:
Diffstat (limited to 'xcb')
-rw-r--r--xcb/export.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/xcb/export.go b/xcb/export.go
index 61810937..4289bcb9 100644
--- a/xcb/export.go
+++ b/xcb/export.go
@@ -37,8 +37,7 @@ var (
)
func ChangeHosts(mode, family C.uint8_t, address string) error {
- var c *C.xcb_connection_t
- c = C.xcb_connect(nil, nil)
+ c := C.xcb_connect(nil, nil)
defer C.xcb_disconnect(c)
if err := xcbHandleConnectionError(c); err != nil {