summaryrefslogtreecommitdiff
path: root/src/win32/windows.cpp
diff options
context:
space:
mode:
authorRobby <robby@chatbelgie.be>2017-01-17 05:03:25 +0100
committerRobby <robby@chatbelgie.be>2017-01-17 05:03:25 +0100
commit76ce8ece1a4803c98bfe9460f40bf8e0fbc409e6 (patch)
tree26e6da47f20de64ef76fe4afc459bbb7889bd417 /src/win32/windows.cpp
parent464093d36e87f3df999145e42ed30fc0dfc55c52 (diff)
Cleanup some excess whitespaces and tabs, and fix a few typos along the way.
Diffstat (limited to 'src/win32/windows.cpp')
-rw-r--r--src/win32/windows.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/win32/windows.cpp b/src/win32/windows.cpp
index 9aaa333ff..a4c6eff49 100644
--- a/src/win32/windows.cpp
+++ b/src/win32/windows.cpp
@@ -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;
}