aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2026-08-20 15:30:30 +1000
committerStefano Brivio <sbrivio@redhat.com>2026-09-08 16:00:05 +0200
commit5b4bdc8c0362c1e0926a8f0eeb6e63f89c0ec7d5 (patch)
treed70a981da0dd9c55ed4778d8a0c492b769b6cefb
parent7e8d49b8a6b501b9eb9caf44cf1f653fd2a385b5 (diff)
downloadpasst-5b4bdc8c0362c1e0926a8f0eeb6e63f89c0ec7d5.tar
passt-5b4bdc8c0362c1e0926a8f0eeb6e63f89c0ec7d5.tar.gz
passt-5b4bdc8c0362c1e0926a8f0eeb6e63f89c0ec7d5.tar.bz2
passt-5b4bdc8c0362c1e0926a8f0eeb6e63f89c0ec7d5.tar.lz
passt-5b4bdc8c0362c1e0926a8f0eeb6e63f89c0ec7d5.tar.xz
passt-5b4bdc8c0362c1e0926a8f0eeb6e63f89c0ec7d5.tar.zst
passt-5b4bdc8c0362c1e0926a8f0eeb6e63f89c0ec7d5.zip
pasta: Include pasta.h in pasta.c
pasta.c doesn't include its own header, meaning the compiler hasn't caught some mismatches between functions and their prototypes. Fix the oversight. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r--pasta.c1
-rw-r--r--pasta.h4
2 files changed, 3 insertions, 2 deletions
diff --git a/pasta.c b/pasta.c
index 5aa56b7..b998a9f 100644
--- a/pasta.c
+++ b/pasta.c
@@ -46,6 +46,7 @@
#include "util.h"
#include "passt.h"
+#include "pasta.h"
#include "isolation.h"
#include "netlink.h"
#include "log.h"
diff --git a/pasta.h b/pasta.h
index edd7747..b6a4cd5 100644
--- a/pasta.h
+++ b/pasta.h
@@ -17,7 +17,7 @@ void pasta_start_ns(struct ctx *c, uid_t uid, gid_t gid, bool config_idmaps,
void pasta_ns_conf(struct ctx *c);
void pasta_child_handler(int signal);
void pasta_netns_quit_init(const struct ctx *c);
-void pasta_netns_quit_inotify_handler(struct ctx *c, int inotify_fd);
-void pasta_netns_quit_timer_handler(struct ctx *c, union epoll_ref ref);
+void pasta_netns_quit_inotify_handler(const struct ctx *c, int inotify_fd);
+void pasta_netns_quit_timer_handler(const struct ctx *c, union epoll_ref ref);
#endif /* PASTA_H */