From: Adriaan Schmidt Date: Tue, 9 May 2023 12:54:26 +0000 (+0200) Subject: fix: repair build for --disable-systemd X-Git-Tag: v3.1.0~77 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e90a54821c202b0b80a955b2041b5aec7ace5414;p=thirdparty%2Flibcgroup.git fix: repair build for --disable-systemd Ensure that the prototypes of `create_systemd_scope` match for both `WITH_SYSTEMD` and `!WITH_SYSTEMD`. Signed-off-by: Adriaan Schmidt Reviewed-by: Kamalesh Babulal Signed-off-by: Tom Hromatka --- diff --git a/src/tools/cgcreate.c b/src/tools/cgcreate.c index ff9c3102..0314e84c 100644 --- a/src/tools/cgcreate.c +++ b/src/tools/cgcreate.c @@ -100,7 +100,7 @@ err: } #else static int create_systemd_scope(struct cgroup * const cg, const char * const prog_name, - int set_default) + int set_default, pid_t pid) { return ECGINVAL; }