#983292 nn: add "active_directory" to "global.h" and "variable.c"

Package:
src:nn
Source:
nn
Submitter:
Bjarni Ingi Gislason
Date:
2021-02-22 00:03:04 UTC
Severity:
normal
Tags:
#983292#5
Date:
2021-02-22 00:00:41 UTC
From:
To:
Dear Maintainer,

  global.h: Declare the variable "active_directory".

  variable.c: define the string "active-directory" in the array
		"variables[]".

Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
---
 global.h   | 2 +-
 variable.c | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/global.h b/global.h
index cd7d24e..8fe3682 100644
--- a/global.h
+++ b/global.h
@@ -95,7 +95,7 @@ typedef int     (*fct_type) ();
  */

 extern char
-               *nn_directory, *lib_directory, version_id[];
+               *active_directory, *nn_directory, *lib_directory, version_id[];

 extern int      use_nntp;	/* 1 iff we are using nntp */

diff --git a/variable.c b/variable.c
index 68cc1f0..2dceaad 100644
--- a/variable.c
+++ b/variable.c
@@ -199,6 +199,7 @@ static struct variable_defs {
     char          **var_addr;
 }               variables[] = {

+    {"active-directory", STR 2, (char **) &active_directory},
     {"also-full-digest", BOOL 0, (char **) &also_full_digest},
     {"also-subgroups", BOOL INIT 0, (char **) &also_subgroups},
     {"append-signature-mail", BOOL 0, (char **) &append_sig_mail},