]> granicus.if.org Git - neomutt/commitdiff
One definition is enough
authorBertram Scharpf <software@bertram-scharpf.de>
Sun, 17 Jun 2018 14:11:20 +0000 (16:11 +0200)
committerRichard Russon <rich@flatcap.org>
Mon, 18 Jun 2018 23:45:56 +0000 (00:45 +0100)
globals.h
nntp.c
nntp.h

index 8b9c19165540f9c6ae7830ab45075a707326fffe..688aad23362da1cfb77396c25ecc0fcc7383023f 100644 (file)
--- a/globals.h
+++ b/globals.h
@@ -53,7 +53,6 @@ extern const char *GitVer;
 
 WHERE struct Hash *Groups;
 WHERE struct Hash *ReverseAliases;
-WHERE struct Hash *TagTransforms;
 WHERE struct Hash *TagFormats;
 
 /* Lists of strings */
@@ -226,8 +225,6 @@ WHERE char *TsStatusFormat;
 WHERE char *TsIconFormat;
 WHERE char *Visual;
 
-WHERE char *HiddenTags;
-
 #ifdef USE_NNTP
 WHERE short NntpPoll;
 WHERE short NntpContext;
diff --git a/nntp.c b/nntp.c
index d582cebbeee15d4203b597d1476758f85c0058f5..032b6e141dd2c0d2f6f6afaa6e42e7fe35220f94 100644 (file)
--- a/nntp.c
+++ b/nntp.c
@@ -64,6 +64,8 @@
 #include <sasl/saslutil.h>
 #endif
 
+struct NntpServer *CurrentNewsSrv;
+
 /**
  * nntp_connect_error - Signal a failed connection
  * @param nserv NNTP server
diff --git a/nntp.h b/nntp.h
index 53d2d40ffbba6cedf38e47fc425d43d8323c2322..6c4a0732b26bf9d5ac6d1369e62bf6465e595055 100644 (file)
--- a/nntp.h
+++ b/nntp.h
@@ -178,7 +178,7 @@ const char *nntp_format_str(char *buf, size_t buflen, size_t col, int cols, char
                             const char *src, const char *prec, const char *if_str,
                             const char *else_str, unsigned long data, enum FormatFlag flags);
 
-struct NntpServer *CurrentNewsSrv;
+extern struct NntpServer *CurrentNewsSrv;
 
 #ifdef USE_HCACHE
 header_cache_t *nntp_hcache_open(struct NntpData *nntp_data);