From: Kamalesh Babulal Date: Mon, 14 Aug 2023 07:55:35 +0000 (+0530) Subject: samples/c/test_functions: fix spellings across the file X-Git-Tag: v3.2.0~204 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a209587ef998a30581c430a42789a1108cdb102;p=thirdparty%2Flibcgroup.git samples/c/test_functions: fix spellings across the file Fix the spelling mistakes across the file and also fix word case. Signed-off-by: Kamalesh Babulal Signed-off-by: Tom Hromatka --- diff --git a/samples/c/test_functions.c b/samples/c/test_functions.c index 290efa93..025f2ffd 100644 --- a/samples/c/test_functions.c +++ b/samples/c/test_functions.c @@ -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) {