summaryrefslogtreecommitdiff
path: root/src/win32
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
parent464093d36e87f3df999145e42ed30fc0dfc55c52 (diff)
Cleanup some excess whitespaces and tabs, and fix a few typos along the way.
Diffstat (limited to 'src/win32')
-rw-r--r--src/win32/dir/dir.cpp2
-rw-r--r--src/win32/dir/dir.h2
-rw-r--r--src/win32/pipe/pipe.cpp2
-rw-r--r--src/win32/resource.h18
-rw-r--r--src/win32/socket.cpp2
-rw-r--r--src/win32/windows.cpp10
6 files changed, 18 insertions, 18 deletions
diff --git a/src/win32/dir/dir.cpp b/src/win32/dir/dir.cpp
index eb162eeae..ff1a13934 100644
--- a/src/win32/dir/dir.cpp
+++ b/src/win32/dir/dir.cpp
@@ -8,7 +8,7 @@
#include "dir.h"
#include <stdio.h>
-
+
DIR *opendir(const char *path)
{
char real_path[MAX_PATH];
diff --git a/src/win32/dir/dir.h b/src/win32/dir/dir.h
index 52956876c..9aa5e1b52 100644
--- a/src/win32/dir/dir.h
+++ b/src/win32/dir/dir.h
@@ -21,7 +21,7 @@ struct DIR
WIN32_FIND_DATA data;
bool read_first;
};
-
+
DIR *opendir(const char *);
dirent *readdir(DIR *);
int closedir(DIR *);
diff --git a/src/win32/pipe/pipe.cpp b/src/win32/pipe/pipe.cpp
index 69a633f3a..8df71e546 100644
--- a/src/win32/pipe/pipe.cpp
+++ b/src/win32/pipe/pipe.cpp
@@ -56,6 +56,6 @@ int pipe(int fds[2])
fds[0] = cfd;
fds[1] = afd;
-
+
return 0;
}
diff --git a/src/win32/resource.h b/src/win32/resource.h
index 9cd2c1e5d..ac74d9d81 100644
--- a/src/win32/resource.h
+++ b/src/win32/resource.h
@@ -10,19 +10,19 @@
// Microsoft Developer Studio generated include file.
// Used by Win32GUI.rc
//
-#define VER_ANOPE 1
-#define MANIFEST_RESOURCE_ID 2
-#define ICON_APP 129
+#define VER_ANOPE 1
+#define MANIFEST_RESOURCE_ID 2
+#define ICON_APP 129
// Next default values for new objects
-//
+//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
-#define _APS_NO_MFC 1
-#define _APS_NEXT_RESOURCE_VALUE 152
-#define _APS_NEXT_COMMAND_VALUE 40061
-#define _APS_NEXT_CONTROL_VALUE 1167
-#define _APS_NEXT_SYMED_VALUE 104
+#define _APS_NO_MFC 1
+#define _APS_NEXT_RESOURCE_VALUE 152
+#define _APS_NEXT_COMMAND_VALUE 40061
+#define _APS_NEXT_CONTROL_VALUE 1167
+#define _APS_NEXT_SYMED_VALUE 104
#endif
#endif
diff --git a/src/win32/socket.cpp b/src/win32/socket.cpp
index 8e7ee6f26..b4e7efe1a 100644
--- a/src/win32/socket.cpp
+++ b/src/win32/socket.cpp
@@ -86,7 +86,7 @@ int windows_inet_pton(int af, const char *src, void *dst)
}
return 1;
}
-
+
return 0;
}
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;
}