[PATCH] group.c:build_sline() fill and gap are not needed in all configurations

Dennis Preiser <[email protected]> Sun, 1 May 2016 17:44:53 +0200
Newsgroups gmane.network.tin.devel
Message-ID <[email protected]>
--rwEMma7ioTxnRzrJ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Attached patch shifts them into an if-else block.

Dennis

--rwEMma7ioTxnRzrJ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="2016-05-01.diff"

diff -urp tin-2.3.4_r2/src/group.c tin-2.3.4_r3/src/group.c
--- tin-2.3.4_r2/src/group.c	2016-04-17 13:41:09.000000000 +0200
+++ tin-2.3.4_r3/src/group.c	2016-05-01 17:26:17.000000000 +0200
@@ -1150,14 +1150,14 @@ build_sline(
 	char tmp_buf[8];
 	char tmp[LEN];
 	int respnum;
-	int n, j;
-	int k, fill, gap;
+	int n, j, k;
 	size_t len;
 	struct t_art_stat sbuf;
 	char *buffer;
 #if defined(MULTIBYTE_ABLE) && !defined(NO_LOCALE)
 	wchar_t *wtmp, *wtmp2;
 #else
+	int fill, gap;
 	size_t len_start;
 #endif /* MULTIBYTE_ABLE && !NO_LOCALE */
 

--rwEMma7ioTxnRzrJ
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KdGluLWRldiBt
YWlsaW5nIGxpc3QKdGluLWRldkB0aW4ub3JnCmh0dHA6Ly9saXN0cy50aW4ub3JnL2NnaS1iaW4v
bWFpbG1hbi9saXN0aW5mby90aW4tZGV2Cg==

--rwEMma7ioTxnRzrJ--