From d261f5e5d0d56dcb3fbf323e94625ac18e7848d6 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 4 Apr 2023 16:51:58 +0200 Subject: common: Change allocation of the comopt symbol. * common/comopt.h (struct gnupg_comopt_s): New. * common/comopt.c (struct gnupg_comopt_s): Define here in the data segment. --- common/comopt.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'common/comopt.h') diff --git a/common/comopt.h b/common/comopt.h index 2a27fddac..9236afc6b 100644 --- a/common/comopt.h +++ b/common/comopt.h @@ -35,13 +35,16 @@ /* Common options for all GnuPG components. */ -struct +struct gnupg_comopt_s { char *logfile; /* Socket used by daemons for logging. */ int use_keyboxd; /* Use the keyboxd as storage backend. */ int no_autostart; /* Do not start gpg-agent. */ char *keyboxd_program; /* Use this as keyboxd program. */ -} comopt; +}; + + +extern struct gnupg_comopt_s comopt; gpg_error_t parse_comopt (int module_id, int verbose); -- cgit v1.2.3