From dcf8965a102d9af0d19aab07fa801fc675f0c8a4 Mon Sep 17 00:00:00 2001 From: Tomas Krizek Date: Thu, 23 Jan 2020 12:13:19 +0100 Subject: [PATCH] daemon/engine: prevent re-definition of the_args --- daemon/engine.c | 1 + daemon/engine.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/daemon/engine.c b/daemon/engine.c index 789ff70f1..4f62a1269 100644 --- a/daemon/engine.c +++ b/daemon/engine.c @@ -70,6 +70,7 @@ const size_t CLEANUP_TIMER = 5*60*1000; /* * Global bindings. */ +struct args *the_args; /** Print help and available commands. */ diff --git a/daemon/engine.h b/daemon/engine.h index 7ae864e58..37d124164 100644 --- a/daemon/engine.h +++ b/daemon/engine.h @@ -103,4 +103,4 @@ struct args { }; /** Pointer to kresd arguments. */ -KR_EXPORT struct args *the_args; +KR_EXPORT extern struct args *the_args; -- 2.47.2