summaryrefslogtreecommitdiff
path: root/src/win32/sigaction
diff options
context:
space:
mode:
authorRobby <robby@chatbelgie.be>2016-01-28 20:24:49 +0100
committerRobby <robby@chatbelgie.be>2016-01-28 20:24:49 +0100
commitf118960a25dd1f482e77586b7853107692d31ec9 (patch)
treec9f232bfeee7a8bc35a4ff5aabfa93969ce3fbef /src/win32/sigaction
parent5d6a71b6d2dc72d95e188c5b1a5bfb7527bd38cd (diff)
Update copyright to 2016. This was done with:
find include/ src/ lang/ docs/ modules/ *.* Config -exec sed -i 's/-20.. Anope Team/-2014 Anope Team/i' {} \; Added missing copyright headers to files that didn't have it yet. Fixed some whitespace and blank lines along the way.
Diffstat (limited to 'src/win32/sigaction')
-rw-r--r--src/win32/sigaction/sigaction.cpp22
-rw-r--r--src/win32/sigaction/sigaction.h36
2 files changed, 29 insertions, 29 deletions
diff --git a/src/win32/sigaction/sigaction.cpp b/src/win32/sigaction/sigaction.cpp
index d5a2d87d1..17faaf2fb 100644
--- a/src/win32/sigaction/sigaction.cpp
+++ b/src/win32/sigaction/sigaction.cpp
@@ -1,19 +1,20 @@
- /* POSIX emulation layer for Windows.
+/* POSIX emulation layer for Windows.
*
- * Copyright (C) 2008-2014 Anope Team <team@anope.org>
+ * (C) 2008-2016 Anope Team
+ * Contact us at team@anope.org
*
* Please read COPYING and README for further details.
*
* Based on the original code of Epona by Lara.
* Based on the original code of Services by Andy Church.
*/
-
- #include <windows.h>
- #include "sigaction.h"
- #include <signal.h>
-
- int sigaction(int sig, struct sigaction *action, struct sigaction *old)
- {
+
+#include <windows.h>
+#include "sigaction.h"
+#include <signal.h>
+
+int sigaction(int sig, struct sigaction *action, struct sigaction *old)
+{
if (sig == -1)
return 0;
if (old == NULL)
@@ -27,5 +28,4 @@
return -1;
}
return 0;
- }
- \ No newline at end of file
+}
diff --git a/src/win32/sigaction/sigaction.h b/src/win32/sigaction/sigaction.h
index 0e9c2f246..c517ba16d 100644
--- a/src/win32/sigaction/sigaction.h
+++ b/src/win32/sigaction/sigaction.h
@@ -1,28 +1,28 @@
- /* POSIX emulation layer for Windows.
+/* POSIX emulation layer for Windows.
*
- * Copyright (C) 2008-2014 Anope Team <team@anope.org>
+ * (C) 2008-2016 Anope Team
+ * Contact us at team@anope.org
*
* Please read COPYING and README for further details.
*
* Based on the original code of Epona by Lara.
* Based on the original code of Services by Andy Church.
*/
-
- #define sigemptyset(x) memset((x), 0, sizeof(*(x)))
-
- #ifndef SIGHUP
- # define SIGHUP -1
- #endif
- #ifndef SIGPIPE
- # define SIGPIPE -1
- #endif
-
- struct sigaction
- {
+
+#define sigemptyset(x) memset((x), 0, sizeof(*(x)))
+
+#ifndef SIGHUP
+# define SIGHUP -1
+#endif
+#ifndef SIGPIPE
+# define SIGPIPE -1
+#endif
+
+struct sigaction
+{
void (*sa_handler)(int);
int sa_flags;
int sa_mask;
- };
-
- extern int sigaction(int, struct sigaction *, struct sigaction *);
-
+};
+
+extern int sigaction(int, struct sigaction *, struct sigaction *);