]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
daemon/engine: prevent re-definition of the_args obs-knot-resolver-bs4hbr/deployments/564
authorTomas Krizek <tomas.krizek@nic.cz>
Thu, 23 Jan 2020 11:13:19 +0000 (12:13 +0100)
committerTomas Krizek <tomas.krizek@nic.cz>
Fri, 24 Jan 2020 12:19:07 +0000 (13:19 +0100)
daemon/engine.c
daemon/engine.h

index 789ff70f16ea0723ad35b7f459d0f5724165c6a9..4f62a126926119af1041c88861d6268ed621bc8e 100644 (file)
@@ -70,6 +70,7 @@ const size_t CLEANUP_TIMER = 5*60*1000;
 /*
  * Global bindings.
  */
+struct args *the_args;
 
 
 /** Print help and available commands. */
index 7ae864e5893de0b078f95dc5b78b51aedc1696a3..37d124164048818bc32afc65196b3544722e975c 100644 (file)
@@ -103,4 +103,4 @@ struct args {
 };
 
 /** Pointer to kresd arguments. */
-KR_EXPORT struct args *the_args;
+KR_EXPORT extern struct args *the_args;