From 3b5df889f58a99980a35a7b4a18eb4e7d2abeac4 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Wed, 9 Oct 2019 14:05:47 -0400 Subject: TEST_t is never defined This didn't even correspond to any of the testing protocol extensions! Apparently there used to be some test programs in xtrans itself, and they've not been a thing since 1994: https://cgit.freedesktop.org/~alanc/xc-historical/commit/?id=73bf4832c427855b2ce111d47dd1f181564b8d06 Reviewed-by: Alan Coopersmith --- Xtrans.c | 5 +---- Xtranslcl.c | 4 ---- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/Xtrans.c b/Xtrans.c index c1ebd26..c4dbbc0 100644 --- a/Xtrans.c +++ b/Xtrans.c @@ -183,10 +183,7 @@ TRANS(SelectTransport) (const char *protocol) return NULL; } -#ifndef TEST_t -static -#endif /* TEST_t */ -int +static int TRANS(ParseAddress) (const char *address, char **protocol, char **host, char **port) diff --git a/Xtranslcl.c b/Xtranslcl.c index ae3c0ad..f8a3976 100644 --- a/Xtranslcl.c +++ b/Xtranslcl.c @@ -231,10 +231,6 @@ TRANS(FillAddrInfo)(XtransConnInfo ciptr, #if defined(ICE_t) #define NAMEDNODENAME "/tmp/.ICE-pipe/" #endif -#if defined(TEST_t) -#define NAMEDNODENAME "/tmp/.Test-unix/test" -#define NAMEDNODENAME "/dev/X/Ntranstest." -#endif -- cgit v1.2.1