]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
samples/c/test_functions: fix spellings across the file
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Mon, 14 Aug 2023 07:55:35 +0000 (13:25 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Wed, 16 Aug 2023 15:26:18 +0000 (09:26 -0600)
Fix the spelling mistakes across the file and also fix word case.

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

index 290efa9317f2c0bbd3504a7a7a6575a5b9ea6ff2..025f2ffdce3a3b4b1dce5b83b316260c85921dbd 100644 (file)
@@ -137,7 +137,7 @@ struct cgroup *create_new_cgroup_ds(int ctl, const char *grpname,
        strncpy(group, grpname, sizeof(group) - 1);
        retval = set_controller(ctl, controller_name, control_file);
        if (retval) {
-               fprintf(stderr, "Setting controller failled\n");
+               fprintf(stderr, "Setting controller failed\n");
                return NULL;
        }
 
@@ -581,7 +581,7 @@ int check_fsmounted(int multimnt)
 
        tmp_entry = (struct mntent *) malloc(sizeof(struct mntent));
        if (!tmp_entry) {
-               perror("Error: failled to mallloc for mntent\n");
+               perror("Error: failed to malloc for mntent\n");
                ret = errno;
                goto error;
        }
@@ -798,7 +798,7 @@ void test_cgroup_get_cgroup(int ctl1, int ctl2, struct uid_gid_t ids, int i)
        int ret;
 
        /*
-        * No need to test the next 3 scenarios separately for Multimnt
+        * No need to test the next 3 scenarios separately for multimnt
         * so testing them only under single mount
         */
        if (fs_mounted == FS_MOUNTED) {