mirror of
https://github.com/anope/anope.git
synced 2026-07-10 18:03:14 +02:00
Cleanup some excess whitespaces and tabs, and fix a few typos along the way.
This commit is contained in:
@@ -56,11 +56,11 @@ USHORT WindowsGetLanguage(const Anope::string &lang)
|
||||
for (int i = 0; i < sizeof(WindowsLanguages) / sizeof(WindowsLanguage); ++i)
|
||||
{
|
||||
WindowsLanguage &l = WindowsLanguages[i];
|
||||
|
||||
|
||||
if (lang == l.languageName || !lang.find(l.languageName + "."))
|
||||
return l.windowsLanguageName;
|
||||
}
|
||||
|
||||
|
||||
return LANG_NEUTRAL;
|
||||
}
|
||||
|
||||
@@ -73,10 +73,10 @@ int gettimeofday(timeval *tv, void *)
|
||||
{
|
||||
SYSTEMTIME st;
|
||||
GetSystemTime(&st);
|
||||
|
||||
|
||||
tv->tv_sec = Anope::CurTime;
|
||||
tv->tv_usec = st.wMilliseconds;
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -248,7 +248,7 @@ int mkstemp(char *input)
|
||||
errno = EEXIST;
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
int fd = open(input, O_WRONLY | O_CREAT, S_IREAD | S_IWRITE);
|
||||
return fd;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user