compilable with C compilers
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@268
94cd875c-1c1d-0410-91d2-
eb244daf1a30
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
-#include "compat.h"
#include <stdio.h>
#include <string.h>
#include "compat.h"
#include "vserver.h"
-int main (int argc, char *argv[])
+int main (int UNUSED argc, char *argv[])
{
// This test must fail
int fd = open ("/",O_RDONLY);
}
}
-int main (int argc, char *argv[])
+int main ()
{
dotest (test1);
dotest (test2);
#include <unistd.h>
#include <stdio.h>
-enum MODE {MODE_SLEEP,MODE_LOOP,MODE_FORK, MODE_FORKSHELL};
+typedef enum {MODE_SLEEP,MODE_LOOP,MODE_FORK, MODE_FORKSHELL} MODE;
static void forkbomb_userfork (MODE mode)