tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 90aeaa53cd3f6cf347cc0629db38079bc90ea80b
parent ae01864b5d3bc8a5e3b069025d9d7972ff1a21c3
Author: Nick Mathewson <nickm@torproject.org>
Date:   Wed, 20 Jun 2018 10:39:07 -0400

Remove all use of the assert.h header

Nothing in Tor has actually called assert() for some while.

Diffstat:
Mconfigure.ac | 3+--
Msrc/common/address.c | 1-
Msrc/common/aes.c | 1-
Msrc/common/compat.c | 1-
Msrc/common/compress.c | 1-
Msrc/common/container.c | 1-
Msrc/common/log.c | 1-
Msrc/common/tortls.c | 1-
Msrc/common/util.c | 1-
Msrc/or/or.h | 4----
Msrc/tools/tor-gencert.c | 1-
Msrc/tools/tor-resolve.c | 1-
12 files changed, 1 insertion(+), 16 deletions(-)

diff --git a/configure.ac b/configure.ac @@ -1312,8 +1312,7 @@ AC_SUBST(CURVE25519_LIBS) dnl Make sure to enable support for large off_t if available. AC_SYS_LARGEFILE -AC_CHECK_HEADERS([assert.h \ - errno.h \ +AC_CHECK_HEADERS([errno.h \ fcntl.h \ signal.h \ string.h \ diff --git a/src/common/address.c b/src/common/address.c @@ -83,7 +83,6 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <assert.h> /* tor_addr_is_null() and maybe other functions rely on AF_UNSPEC being 0 to * work correctly. Bail out here if we've found a platform where AF_UNSPEC diff --git a/src/common/aes.c b/src/common/aes.c @@ -26,7 +26,6 @@ DISABLE_GCC_WARNING(redundant-decls) -#include <assert.h> #include <stdlib.h> #include <string.h> #include <openssl/aes.h> diff --git a/src/common/compat.c b/src/common/compat.c @@ -111,7 +111,6 @@ SecureZeroMemory(PVOID ptr, SIZE_T cnt) #endif #include <stdio.h> #include <stdlib.h> -#include <assert.h> #ifdef HAVE_SIGNAL_H #include <signal.h> #endif diff --git a/src/common/compress.c b/src/common/compress.c @@ -12,7 +12,6 @@ #include <stdlib.h> #include <stdio.h> -#include <assert.h> #include <string.h> #include "common/torint.h" diff --git a/src/common/container.c b/src/common/container.c @@ -19,7 +19,6 @@ #include <stdlib.h> #include <string.h> -#include <assert.h> #include "ht.h" diff --git a/src/common/log.c b/src/common/log.c @@ -11,7 +11,6 @@ #include "orconfig.h" #include <stdarg.h> -#include <assert.h> // #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/src/common/tortls.c b/src/common/tortls.c @@ -19,7 +19,6 @@ #define TORTLS_PRIVATE #define TORTLS_OPENSSL_PRIVATE -#include <assert.h> #ifdef _WIN32 /*wrkard for dtls1.h >= 0.9.8m of "#include <winsock.h>"*/ #include <winsock2.h> #include <ws2tcpip.h> diff --git a/src/common/util.c b/src/common/util.c @@ -45,7 +45,6 @@ #include <stdlib.h> #include <stdio.h> #include <string.h> -#include <assert.h> #include <signal.h> #ifdef HAVE_NETINET_IN_H diff --git a/src/or/or.h b/src/or/or.h @@ -51,9 +51,6 @@ #ifdef HAVE_ERRNO_H #include <errno.h> #endif -#ifdef HAVE_ASSERT_H -#include <assert.h> -#endif #ifdef HAVE_TIME_H #include <time.h> #endif @@ -3331,4 +3328,3 @@ typedef enum was_router_added_t { typedef struct tor_version_t tor_version_t; #endif /* !defined(TOR_OR_H) */ - diff --git a/src/tools/tor-gencert.c b/src/tools/tor-gencert.c @@ -33,7 +33,6 @@ ENABLE_GCC_WARNING(redundant-decls) #if 0 #include <stdlib.h> #include <stdarg.h> -#include <assert.h> #endif #include "common/util.h" diff --git a/src/tools/tor-resolve.c b/src/tools/tor-resolve.c @@ -14,7 +14,6 @@ #include <stdlib.h> #include <stdarg.h> #include <string.h> -#include <assert.h> #ifdef HAVE_NETINET_IN_H #include <netinet/in.h>