Explorar o código

Remove some duplicate includes

Andrea Gelmini %!s(int64=12) %!d(string=hai) anos
pai
achega
72d4d762c1
Modificáronse 4 ficheiros con 0 adicións e 7 borrados
  1. 0 3
      src/common/compat.h
  2. 0 2
      src/common/crypto.c
  3. 0 1
      src/common/mempool.c
  4. 0 1
      src/or/eventdns.c

+ 0 - 3
src/common/compat.h

@@ -45,9 +45,6 @@
 #ifdef HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
 #endif
-#ifdef HAVE_SYS_TYPES_H
-#include <sys/types.h>
-#endif
 #ifdef HAVE_NETINET_IN_H
 #include <netinet/in.h>
 #endif

+ 0 - 2
src/common/crypto.c

@@ -64,8 +64,6 @@
 #error "We require OpenSSL >= 0.9.7"
 #endif
 
-#include <openssl/engine.h>
-
 #ifdef ANDROID
 /* Android's OpenSSL seems to have removed all of its Engine support. */
 #define DISABLE_ENGINES

+ 0 - 1
src/common/mempool.c

@@ -62,7 +62,6 @@
 
 #if 1
 /* Tor dependencies */
-#include "orconfig.h"
 #include "util.h"
 #include "compat.h"
 #include "torlog.h"

+ 0 - 1
src/or/eventdns.c

@@ -75,7 +75,6 @@
 #include <stdint.h>
 #endif
 #include <stdlib.h>
-#include <string.h>
 #include <errno.h>
 #include <assert.h>
 #ifdef HAVE_UNISTD_H