}
-int test_attach(const char *lxcpath, const char *name, const char *template)
+static int test_attach(const char *lxcpath, const char *name, const char *template)
{
int ret = -1;
struct lxc_container *ct;
static int delay = 0;
static const char *template = "busybox";
-static struct option options[] = {
+static const struct option options[] = {
{ "threads", required_argument, NULL, 'j' },
{ "iterations", required_argument, NULL, 'i' },
{ "template", required_argument, NULL, 't' },
struct thread_args {
int thread_id;
int return_code;
- char *mode;
+ const char *mode;
};
static void do_function(void *arguments)
int main(int argc, char *argv[])
{
- char *lxcpath = NULL;
+ const char *lxcpath = NULL;
if (argc > 1)
lxcpath = argv[1];
#define mycontainername "lxctest.sem"
#define TIMEOUT_SECS 3
-void test_two_locks(void)
+static void test_two_locks(void)
{
struct lxc_lock *l;
pid_t pid;
#include <stdlib.h>
#include <lxc/lxccontainer.h>
-void usage(char *me)
+static void usage(const char *me)
{
printf("Usage: %s name [lxcpath]\n", me);
exit(0);
int main(int argc, char *argv[])
{
- char *lxcpath = NULL, *name;
+ const char *lxcpath = NULL, *name;
bool may = false;
struct lxc_container *c;
return 0;
}
-int test_reboot(int cmd, int sig)
+static int test_reboot(int cmd, int sig)
{
long stack_size = 4096;
void *stack = alloca(stack_size) + stack_size;
#define MYNAME "snapxxx1"
#define RESTNAME "snapxxx2"
-void try_to_remove()
+static void try_to_remove(void)
{
struct lxc_container *c;
char snappath[1024];