44
44
*/
45
45
static size_t mfd_def_size = MFD_DEF_SIZE ;
46
46
static const char * memfd_str = MEMFD_STR ;
47
- static int newpid_thread_fn2 (void * arg );
48
- static void join_newpid_thread (pid_t pid );
49
47
50
48
static ssize_t fd2name (int fd , char * buf , size_t bufsize )
51
49
{
@@ -194,7 +192,6 @@ static unsigned int mfd_assert_get_seals(int fd)
194
192
static void mfd_assert_has_seals (int fd , unsigned int seals )
195
193
{
196
194
char buf [PATH_MAX ];
197
- int nbytes ;
198
195
unsigned int s ;
199
196
fd2name (fd , buf , PATH_MAX );
200
197
@@ -696,7 +693,6 @@ static void mfd_assert_mode(int fd, int mode)
696
693
{
697
694
struct stat st ;
698
695
char buf [PATH_MAX ];
699
- int nbytes ;
700
696
701
697
fd2name (fd , buf , PATH_MAX );
702
698
@@ -715,7 +711,6 @@ static void mfd_assert_mode(int fd, int mode)
715
711
static void mfd_assert_chmod (int fd , int mode )
716
712
{
717
713
char buf [PATH_MAX ];
718
- int nbytes ;
719
714
720
715
fd2name (fd , buf , PATH_MAX );
721
716
@@ -731,7 +726,6 @@ static void mfd_fail_chmod(int fd, int mode)
731
726
{
732
727
struct stat st ;
733
728
char buf [PATH_MAX ];
734
- int nbytes ;
735
729
736
730
fd2name (fd , buf , PATH_MAX );
737
731
@@ -1254,9 +1248,6 @@ static void test_sysctl_set_sysctl2(void)
1254
1248
1255
1249
static int sysctl_simple_child (void * arg )
1256
1250
{
1257
- int fd ;
1258
- int pid ;
1259
-
1260
1251
printf ("%s sysctl 0\n" , memfd_str );
1261
1252
test_sysctl_set_sysctl0 ();
1262
1253
@@ -1321,7 +1312,6 @@ static void test_sysctl_sysctl2_failset(void)
1321
1312
1322
1313
static int sysctl_nested_child (void * arg )
1323
1314
{
1324
- int fd ;
1325
1315
int pid ;
1326
1316
1327
1317
printf ("%s nested sysctl 0\n" , memfd_str );
0 commit comments