From 1b00dab01817a465c293325f3ab44bb40c607f4c Mon Sep 17 00:00:00 2001 From: Davin McCall Date: Sun, 21 Jun 2020 17:36:38 +1000 Subject: [PATCH] Fix dinitctl add/remove dependency --- src/dinitctl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dinitctl.cc b/src/dinitctl.cc index 3542e56..b884be3 100644 --- a/src/dinitctl.cc +++ b/src/dinitctl.cc @@ -980,7 +980,7 @@ static int add_remove_dependency(int socknum, cpbuffer_t &rbuffer, bool add, auto m = membuf() .append(add ? (char)DINIT_CP_ADD_DEP : (char)DINIT_CP_REM_DEP) - .append(dep_type) + .append(static_cast(dep_type)) .append(from_handle) .append(to_handle); write_all_x(socknum, m); -- 2.25.1