Skip to contentSkip to conversation

open02.c: remove redundant headers and a typo fix

PATCH In review Avinesh Kumar 2 participants 2 messages Jul 10, 2022 – Jul 11, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 open02.c: remove redundant headers and a typo fix

---
 testcases/kernel/syscalls/open/open02.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
testcases/kernel/syscalls/open/open02.c +1 -6
index 67bf423ae..bc7d04797 100644
@@ -13,11 +13,6 @@
 
 #define _GNU_SOURCE
 
-#include <stdio.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <errno.h>
-#include <fcntl.h>
 #include <pwd.h>
 #include "tst_test.h"
 
@@ -31,7 +26,7 @@ static struct tcase {
 	const char *desc;
 } tcases[] = {
 	{TEST_FILE, O_RDWR, ENOENT, "new file without O_CREAT"},
-	{TEST_FILE2, O_RDONLY | O_NOATIME, EPERM, "unpriviledget O_RDONLY | O_NOATIME"},
+	{TEST_FILE2, O_RDONLY | O_NOATIME, EPERM, "unprivileged O_RDONLY | O_NOATIME"},
 };
 
 void setup(void)
Signature · 5 lines
2.36.1


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
#1 lore raw

Hi Avinesh,

thanks, merged!

Kind regards,
Petr

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp