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

Dennis Preiser dennis at d--p.de
Sun May 1 17:44:53 CEST 2016


Attached patch shifts them into an if-else block.

Dennis
-------------- next part --------------
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 */
 


More information about the tin-dev mailing list