From: Davin McCall Date: Sun, 21 Jun 2020 07:36:38 +0000 (+1000) Subject: Fix dinitctl add/remove dependency X-Git-Tag: v0.8.2~5 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1b00dab01817a465c293325f3ab44bb40c607f4c;p=oweals%2Fdinit.git Fix dinitctl add/remove dependency --- 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);