aboutsummaryrefslogtreecommitdiffhomepage
path: root/xcb
diff options
context:
space:
mode:
authorOphestra Umiker <cat@ophivana.moe>2024-10-12 01:51:06 +0900
committerOphestra Umiker <cat@ophivana.moe>2024-10-12 01:51:06 +0900
commit61b473a06fb12b9f3d6f9d7f07693313bd954509 (patch)
tree4644815e52818f2c0bacbf99f9f56319680c489c /xcb
parentd2575b670835fd19f7a67e5eee476a46eb9822e5 (diff)
fortify: clean up config loading
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
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 {