aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeex <zeex@rocketmail.com>2014-11-27 01:30:56 +0600
committerZeex <zeex@rocketmail.com>2014-11-27 01:33:36 +0600
commit51598ff1fa6837446c6b0200b51cc0603d7ba144 (patch)
tree30ef9f29d04a7508aea99528fb31b66ca6542128
parent1375e4c9119255de10a87d66e45dd7760d0d76ad (diff)
downloadsubhook-51598ff1fa6837446c6b0200b51cc0603d7ba144.zip
subhook-51598ff1fa6837446c6b0200b51cc0603d7ba144.tar.gz
subhook-51598ff1fa6837446c6b0200b51cc0603d7ba144.tar.bz2
Remove unused includes
-rw-r--r--subhook.c2
-rw-r--r--subhook.h2
-rw-r--r--subhook_linux.c1
-rw-r--r--subhook_private.h2
4 files changed, 2 insertions, 5 deletions
diff --git a/subhook.c b/subhook.c
index ab04865..bb2b79a 100644
--- a/subhook.c
+++ b/subhook.c
@@ -23,8 +23,6 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-#include <stdlib.h>
-
#include "subhook.h"
#include "subhook_private.h"
diff --git a/subhook.h b/subhook.h
index ab3028c..b9e994f 100644
--- a/subhook.h
+++ b/subhook.h
@@ -26,8 +26,6 @@
#ifndef SUBHOOK_H
#define SUBHOOK_H
-#include <stddef.h>
-
#if defined _M_IX86 || defined __i386__
#define SUBHOOK_X86
#define SUBHOOK_BITS 32
diff --git a/subhook_linux.c b/subhook_linux.c
index 7966a25..3fa4bd2 100644
--- a/subhook_linux.c
+++ b/subhook_linux.c
@@ -24,7 +24,6 @@
*/
#include <stddef.h>
-#include <stdlib.h>
#include <unistd.h>
#include <sys/mman.h>
diff --git a/subhook_private.h b/subhook_private.h
index f3aad37..128f945 100644
--- a/subhook_private.h
+++ b/subhook_private.h
@@ -26,6 +26,8 @@
#ifndef SUBHOOK_PRIVATE_H
#define SUBHOOK_PRIVATE_H
+#include <stddef.h>
+
struct subhook {
int installed;
void *src;