From 7bd504f7ab7799ab77ad50eb39f6afdbaf2f9e50 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 25 Aug 2018 11:18:52 -0700 Subject: Use strcasecmp if it's available, instead of lowercasing strings Signed-off-by: Alan Coopersmith --- Xtranslcl.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'Xtranslcl.c') diff --git a/Xtranslcl.c b/Xtranslcl.c index f21f606..9eddf37 100644 --- a/Xtranslcl.c +++ b/Xtranslcl.c @@ -1714,9 +1714,8 @@ static LOCALtrans2dev * TRANS(LocalGetNextTransport)(void) { - int i,j; + int i; char *typetocheck; - char typebuf[TYPEBUFSIZE]; prmsg(3,"LocalGetNextTransport()\n"); while(1) @@ -1731,6 +1730,9 @@ TRANS(LocalGetNextTransport)(void) for(i=0;iTransName, typebuf)) +#else + if (!strcasecmp(thistrans->TransName, typetocheck)) +#endif found = 1; typetocheck = workingXLOCAL; } -- cgit v1.2.3