From 5b4bdc8c0362c1e0926a8f0eeb6e63f89c0ec7d5 Mon Sep 17 00:00:00 2001 From: David Gibson Date: Thu, 20 Aug 2026 15:30:30 +1000 Subject: 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 Signed-off-by: Stefano Brivio --- pasta.c | 1 + pasta.h | 4 ++-- 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 */ -- cgit v1.2.3