ujail: use PATH_MAX for path related buffers
[project/procd.git] / jail / elf.h
index 19ceb3e..4ab928d 100644 (file)
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  */
+#ifndef _JAIL_ELF_H_
+#define _JAIL_ELF_H_
 
-#ifndef _ELF_H__
 #include <libubox/avl.h>
 #include <libubox/avl-cmp.h>
 
-#include "log.h"
-
 struct library {
        struct avl_node avl;
        char *name;
@@ -31,8 +30,8 @@ struct library_path {
 extern struct avl_tree libraries;
 
 void alloc_library_path(const char *path);
-char* find_lib(char *file);
-int elf_load_deps(char *library);
+int elf_load_deps(const char *library);
+const char* find_lib(const char *file);
 void load_ldso_conf(const char *conf);
 
 #endif