r14093@catbus: nickm | 2007-08-08 01:49:54 -0400

Include fewer redundant headers; use the compiler search paths better.


svn:r11060
This commit is contained in:
Nick Mathewson
2007-08-08 05:50:31 +00:00
parent 50f5f63678
commit 3fc04529d4
19 changed files with 56 additions and 60 deletions
+1 -1
View File
@@ -14,7 +14,7 @@
* \brief Headers for aes.c
*/
#include "../common/torint.h"
#include "torint.h"
struct aes_cnt_cipher;
typedef struct aes_cnt_cipher aes_cnt_cipher_t;
-1
View File
@@ -8,7 +8,6 @@
#define CONTAINER_H_ID \
"$Id$"
#include "compat.h"
#include "util.h"
/** A resizeable list of pointers, with associated helpful functionality.
+1 -1
View File
@@ -13,7 +13,7 @@
#ifndef __LOG_H
#define LOG_H_ID "$Id$"
#include "../common/compat.h"
#include "compat.h"
#ifdef HAVE_SYSLOG_H
#include <syslog.h>
-2
View File
@@ -12,8 +12,6 @@
* \brief Macros used by unit tests.
*/
#include <string.h>
#include <stdio.h>
#include "compat.h"
#ifdef __GNUC__
+2 -2
View File
@@ -12,8 +12,8 @@
* \brief Headers for tortls.c
**/
#include "../common/crypto.h"
#include "../common/compat.h"
#include "crypto.h"
#include "compat.h"
/* Opaque structure to hold a TLS connection. */
typedef struct tor_tls_t tor_tls_t;
-6
View File
@@ -17,12 +17,6 @@
#include "compat.h"
#include <stdio.h>
#include <stdlib.h>
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
#ifdef HAVE_TIME_H
#include <time.h>
#endif
/* Replace assert() with a variant that sends failures to the log before
* calling assert() normally.