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
@@ -90,7 +90,7 @@ int denylist_cli(int argc, char **argv) {
}
// Send request
int fd = connect_daemon(+RequestCode::DENYLIST);
int fd = connect_daemon(RequestCode::DENYLIST);
write_int(fd, req);
if (req == DenyRequest::ADD || req == DenyRequest::REMOVE) {
write_string(fd, argv[2]);