]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
error: hide unnecessary symbols
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 20 Jul 2020 14:11:48 +0000 (16:11 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 20 Jul 2020 14:17:45 +0000 (16:17 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/Makefile.am
src/lxc/error.c
src/lxc/error.h

index de22ab0cdf15ff5d252ebd4c6042532e3087fdbb..d1a4498cda764c34172b2f9d57e0a9db3fab03b8 100644 (file)
@@ -518,7 +518,7 @@ if ENABLE_COMMANDS
 # Binaries shipping with liblxc
 init_lxc_SOURCES = cmd/lxc_init.c \
                   compiler.h \
-                  error.h \
+                  error.c error.h \
                   initutils.c initutils.h \
                   memory_utils.h \
                   parse.c parse.h \
index 6e49eca2daf6952c5e98b9cde90fc77e08e5364f..51fe5092aa87f7c39546ec22616967b0bb52fb81 100644 (file)
@@ -18,7 +18,7 @@ lxc_log_define(error, lxc);
  *   128+n       signal n received by the application
  *   255         lxc error
  */
-extern int lxc_error_set_and_log(int pid, int status)
+int lxc_error_set_and_log(int pid, int status)
 {
        int ret = 0;
 
index 49323d5bfc287d2a308590d898295ee63bc8e8d3..3934585201355de98e9edc90f0e8f4e98d18c528 100644 (file)
@@ -6,6 +6,8 @@
 #define LXC_CLONE_ERROR "Failed to clone a new set of namespaces"
 #define LXC_UNPRIV_EOPNOTSUPP "the requested function %s is not currently supported with unprivileged containers"
 
-extern int  lxc_error_set_and_log(int pid, int status);
+#include "compiler.h"
+
+__hidden extern int lxc_error_set_and_log(int pid, int status);
 
 #endif