]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
src/daemon/cgrulesengd: match naming with upstream Linux
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Fri, 11 Oct 2024 00:51:26 +0000 (06:21 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Tue, 22 Oct 2024 15:53:24 +0000 (09:53 -0600)
Rename local variable 'cgroup' -> 'cgrp' to match upstream Linux Kernel,
bringing it closer to the Linux kernel cgroup code.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
src/daemon/cgrulesengd.c

index 4cc73164b019fda99b5d5b38047c53b2a9fee7d3..ad49d217516b39525d74d8d750f43e47148290c0 100644 (file)
@@ -174,11 +174,11 @@ void flog(int level, const char *format, ...)
  * Libcgroup logging callback. It must translate libcgroup log levels
  * to cgrulesengd native (=syslog).
  */
-void flog_cgroup(void *userdata, int cgroup_level, const char *format, va_list ap)
+void flog_cgroup(void *userdata, int cgrp_level, const char *format, va_list ap)
 {
        int level = 0;
 
-       switch (cgroup_level) {
+       switch (cgrp_level) {
        case CGROUP_LOG_ERROR:
                level = LOG_ERR;
                break;