fortify: clean up config loading

Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
2024-10-12 01:51:06 +09:00
parent d2575b6708
commit 61b473a06f
3 changed files with 80 additions and 90 deletions

View File

@@ -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 {