Directly accept RequestCode for connect_daemon

This commit is contained in:
topjohnwu
2025-09-15 14:25:18 -07:00
committed by John Wu
parent 0acc39cec0
commit 4aed644e08
7 changed files with 22 additions and 22 deletions
+1 -1
View File
@@ -206,7 +206,7 @@ int su_client_main(int argc, char *argv[]) {
}
// Connect to client
owned_fd fd = connect_daemon(+RequestCode::SUPERUSER);
owned_fd fd = connect_daemon(RequestCode::SUPERUSER);
// Send request
req.write_to_fd(fd);