From: Enrico Scholz Date: Tue, 21 Oct 2003 13:54:59 +0000 (+0000) Subject: renamed to .cc files to .c and made some little changes to make them X-Git-Tag: VERSION_0_10~1145 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=865ce0e73c58457aa139424d52d8e096270be104;p=util-vserver.git 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 --- 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