Dolda2000 GitWeb
/
doldaconnect.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove usage of gmake's $(shell...) from dolcon{,f}.
[doldaconnect.git]
/
common
/
utils.c
diff --git
a/common/utils.c
b/common/utils.c
index
bb29781
..
6dac3dc
100644
(file)
--- a/
common/utils.c
+++ b/
common/utils.c
@@
-441,11
+441,7
@@
int wcsexists(wchar_t *h, wchar_t *n)
#ifndef HAVE_WCSCASECMP
int wcscasecmp(const wchar_t *s1, const wchar_t *s2)
{
#ifndef HAVE_WCSCASECMP
int wcscasecmp(const wchar_t *s1, const wchar_t *s2)
{
- while(towlower(*s1) == towlower(*s2))
- {
- if(*s1 == L'\0')
- return(0);
- }
+ for(; (towlower(*s1) == towlower(*s2)) && (*s1 != L'\0'); s1++, s2++);
return(towlower(*s1) - towlower(*s2));
}
#endif
return(towlower(*s1) - towlower(*s2));
}
#endif