]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
fix: repair build for --disable-systemd
authorAdriaan Schmidt <adriaan.schmidt@siemens.com>
Tue, 9 May 2023 12:54:26 +0000 (14:54 +0200)
committerTom Hromatka <tom.hromatka@oracle.com>
Tue, 9 May 2023 20:38:32 +0000 (14:38 -0600)
Ensure that the prototypes of `create_systemd_scope` match for both
`WITH_SYSTEMD` and `!WITH_SYSTEMD`.

Signed-off-by: Adriaan Schmidt <adriaan.schmidt@siemens.com>
Reviewed-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
src/tools/cgcreate.c

index ff9c3102f9a6ff27128a1a211b0bb866f93283e4..0314e84c3fc82be2441a2190d5b0638d1ee47572 100644 (file)
@@ -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;
 }