From 5e7b18e44ca29c1ac09799fdcaa831f64986d564 Mon Sep 17 00:00:00 2001 From: Stas Degteff Date: Sat, 5 Nov 2005 16:01:06 +0000 Subject: [PATCH] It's not needed to use own isalpha() in disk letter check --- goldlib/msgidlib/fexist.c | 6 +++--- goldlib/msgidlib/genmsgid.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/goldlib/msgidlib/fexist.c b/goldlib/msgidlib/fexist.c index 5aa0729..4069935 100755 --- a/goldlib/msgidlib/fexist.c +++ b/goldlib/msgidlib/fexist.c @@ -89,7 +89,7 @@ int direxist(const char *directory) /* Root directory of any drive always exists! */ - if ((g_isalpha((int)tempstr[0]) && tempstr[1] == ':' && (tempstr[2] == '\\' || tempstr[2] == '/') && + if ((isalpha((int)tempstr[0]) && tempstr[1] == ':' && (tempstr[2] == '\\' || tempstr[2] == '/') && !tempstr[3]) || eqstr(tempstr, "\\")) { free(tempstr); return TRUE; @@ -185,7 +185,7 @@ int direxist(const char *directory) /* Root directory of any drive always exists! */ - if ((g_isalpha(tempstr[0]) && tempstr[1] == ':' && ((tempstr[2] == '\0') || ((tempstr[2] == '\\' || + if ((isalpha(tempstr[0]) && tempstr[1] == ':' && ((tempstr[2] == '\0') || ((tempstr[2] == '\\' || tempstr[2] == '/') && tempstr[3] == '\0'))) || eqstri(tempstr, "\\")) { ret = TRUE; @@ -243,7 +243,7 @@ int _fast direxist(const char *directory) /* Root directory of any drive always exists! */ - if ((g_isalpha((int)tempstr[0]) && tempstr[1] == ':' && (tempstr[2] == '\\' || tempstr[2] == '/') && + if ((isalpha((int)tempstr[0]) && tempstr[1] == ':' && (tempstr[2] == '\\' || tempstr[2] == '/') && !tempstr[3]) || eqstr(tempstr, "\\")) { free(tempstr); diff --git a/goldlib/msgidlib/genmsgid.c b/goldlib/msgidlib/genmsgid.c index 9834840..ccf3d77 100755 --- a/goldlib/msgidlib/genmsgid.c +++ b/goldlib/msgidlib/genmsgid.c @@ -85,7 +85,7 @@ dword GenMsgIdEx(char *seqdir, unsigned long max_outrun, dword (*altGenMsgId)(vo p = getenv("SEQOUT"); if ( p && isdigit((int)(*p)) ) { max_outrun = (unsigned long)atol(p); - switch (g_tolower(p[strlen(p) - 1])) { + switch (tolower(p[strlen(p) - 1])) { case 'y': max_outrun *= 365; case 'd': max_outrun *= 24; case 'h': max_outrun *= 60*60;