From 865ce0e73c58457aa139424d52d8e096270be104 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Tue, 21 Oct 2003 13:54:59 +0000 Subject: [PATCH] renamed to .cc files to .c and made some little changes to make them compilable with C compilers git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@268 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- util-vserver/tests/{chrootsafe.cc => chrootsafe.c} | 3 +-- util-vserver/tests/{escaperoot.cc => escaperoot.c} | 2 +- util-vserver/tests/{forkbomb.cc => forkbomb.c} | 2 +- util-vserver/tests/{testipc.cc => testipc.c} | 0 util-vserver/tests/{testlimit.cc => testlimit.c} | 0 util-vserver/tests/{testopenf.cc => testopenf.c} | 0 6 files changed, 3 insertions(+), 4 deletions(-) rename util-vserver/tests/{chrootsafe.cc => chrootsafe.c} (97%) rename util-vserver/tests/{escaperoot.cc => escaperoot.c} (98%) rename util-vserver/tests/{forkbomb.cc => forkbomb.c} (97%) rename util-vserver/tests/{testipc.cc => testipc.c} (100%) rename util-vserver/tests/{testlimit.cc => testlimit.c} (100%) rename util-vserver/tests/{testopenf.cc => testopenf.c} (100%) diff --git a/util-vserver/tests/chrootsafe.cc b/util-vserver/tests/chrootsafe.c similarity index 97% rename from util-vserver/tests/chrootsafe.cc rename to util-vserver/tests/chrootsafe.c index 2739433..42ac5fb 100644 --- a/util-vserver/tests/chrootsafe.cc +++ b/util-vserver/tests/chrootsafe.c @@ -26,7 +26,6 @@ #ifdef HAVE_CONFIG_H # include #endif -#include "compat.h" #include #include @@ -40,7 +39,7 @@ #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); diff --git a/util-vserver/tests/escaperoot.cc b/util-vserver/tests/escaperoot.c similarity index 98% rename from util-vserver/tests/escaperoot.cc rename to util-vserver/tests/escaperoot.c index 1357229..4a64433 100644 --- a/util-vserver/tests/escaperoot.cc +++ b/util-vserver/tests/escaperoot.c @@ -104,7 +104,7 @@ static void dotest (void (*f)()) } } -int main (int argc, char *argv[]) +int main () { dotest (test1); dotest (test2); diff --git a/util-vserver/tests/forkbomb.cc b/util-vserver/tests/forkbomb.c similarity index 97% rename from util-vserver/tests/forkbomb.cc rename to util-vserver/tests/forkbomb.c index a877624..af18b3f 100644 --- a/util-vserver/tests/forkbomb.cc +++ b/util-vserver/tests/forkbomb.c @@ -25,7 +25,7 @@ #include #include -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) diff --git a/util-vserver/tests/testipc.cc b/util-vserver/tests/testipc.c similarity index 100% rename from util-vserver/tests/testipc.cc rename to util-vserver/tests/testipc.c diff --git a/util-vserver/tests/testlimit.cc b/util-vserver/tests/testlimit.c similarity index 100% rename from util-vserver/tests/testlimit.cc rename to util-vserver/tests/testlimit.c diff --git a/util-vserver/tests/testopenf.cc b/util-vserver/tests/testopenf.c similarity index 100% rename from util-vserver/tests/testopenf.cc rename to util-vserver/tests/testopenf.c -- 1.8.1.5