setsockopt08: make check fixes
PATCH 1/1 setsockopt08: make check fixes
From: Avinesh Kumar <[email protected]>
- correct misspelled 'layed'
- remove space after a cast
- make setup() and run() static
Signed-off-by Avinesh Kumar <[email protected]>
--- testcases/kernel/syscalls/setsockopt/setsockopt08.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
testcases/kernel/syscalls/setsockopt/setsockopt08.c +4 -4
@@ -68,7 +68,7 @@* * That is, the padding gets inserted unconditionally during the transformation, * independent of the actual values of ->u.user.match_size or -* ->u.user.target_size and the result ends up getting layed out with proper +* ->u.user.target_size and the result ends up getting laid out with proper * alignment only if said values match the expectations. * * That's not a problem in itself, but this unconditional insertion of padding
@@ -99,7 +99,7 @@static void *buffer; -void setup (void ) +static void setup (void ) {if (!tst_is_compat_mode ())tst_res (TINFO ,"The vulnerability was only present in 32-bit compat mode" );
@@ -107,7 +107,7 @@ void setup(void)tst_setup_netns (); } -void run (void ) +static void run (void ) {const char *const res_fmt_str ="setsockopt(%d, IPPROTO_IP, IPT_SO_SET_REPLACE, %p, 1)" ;
@@ -118,7 +118,7 @@ void run(void)const size_t tgt_size =32 ;const size_t match_size =1024 -64 -112 -4 - tgt_size -4 ;struct xt_entry_target *xt_entry_tgt = - ((struct xt_entry_target *) (&ipt_entry->elems[0 ] + match_size)); + ((struct xt_entry_target *)(&ipt_entry->elems[0 ] + match_size));int fd =SAFE_SOCKET (AF_INET ,SOCK_DGRAM ,0 );int result;
Signature · 5 lines
2.55.0 -- Mailing list info: https://lists.linux.it/listinfo/ltp
Reviewed-by Andrea Cervesato <[email protected]>
--
Andrea Cervesato
SUSE QE Automation Engineer Linux
[email protected]
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Andrea Cervesato via ltp
AppliedMerged, Thanks!
--
Andrea Cervesato
SUSE QE Automation Engineer Linux
[email protected]
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp