]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxcseccomp: cleanup header
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 24 May 2018 11:34:49 +0000 (13:34 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Thu, 24 May 2018 11:34:49 +0000 (13:34 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/lxcseccomp.h

index bfafe3aec8dd711cfe508fbf21e0b98e3a3d9d24..93d57bbdcd31cae8453effebc197b2933ace9c4c 100644 (file)
 #include "conf.h"
 
 #ifdef HAVE_SECCOMP
-int lxc_seccomp_load(struct lxc_conf *conf);
-int lxc_read_seccomp_config(struct lxc_conf *conf);
-void lxc_seccomp_free(struct lxc_conf *conf);
+extern int lxc_seccomp_load(struct lxc_conf *conf);
+extern int lxc_read_seccomp_config(struct lxc_conf *conf);
+extern void lxc_seccomp_free(struct lxc_conf *conf);
 #else
-static inline int lxc_seccomp_load(struct lxc_conf *conf) {
+static inline int lxc_seccomp_load(struct lxc_conf *conf)
+{
        return 0;
 }
 
-static inline int lxc_read_seccomp_config(struct lxc_conf *conf) {
+static inline int lxc_read_seccomp_config(struct lxc_conf *conf)
+{
        return 0;
 }
 
-static inline void lxc_seccomp_free(struct lxc_conf *conf) {
-       if (conf->seccomp) {
-               free(conf->seccomp);
-               conf->seccomp = NULL;
-       }
+static inline void lxc_seccomp_free(struct lxc_conf *conf)
+{
+       free(conf->seccomp);
+       conf->seccomp = NULL;
 }
 #endif