ujail: fixup code style: "func()" -> "func(void)"
[project/procd.git] / jail / jail.c
index 90aa482..b7e6946 100644 (file)
@@ -139,7 +139,7 @@ static int mount_bind(const char *root, const char *path, const char *name, int
        return 0;
 }
 
-static int build_jail_fs()
+static int build_jail_fs(void)
 {
        struct library *l;
        struct extra *m;
@@ -154,11 +154,7 @@ static int build_jail_fs()
                return -1;
        }
 
-       avl_init(&libraries, avl_strcmp, false, NULL);
-       alloc_library_path("/lib");
-       alloc_library_path("/lib64");
-       alloc_library_path("/usr/lib");
-       load_ldso_conf("/etc/ld.so.conf");
+       init_library_search();
 
        if (elf_load_deps(*opts.jail_argv)) {
                ERROR("failed to load dependencies\n");
@@ -257,7 +253,7 @@ ujail will not use namespace/build a jail,\n\
 and will only drop capabilities/apply seccomp filter.\n\n");
 }
 
-static int exec_jail()
+static int exec_jail(void)
 {
        char **envp = build_envp(opts.seccomp);
        if (!envp)