Nothing in Tor has actually called assert() for some while.
12 files changed:
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 \
#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
DISABLE_GCC_WARNING(redundant-decls)
-#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <openssl/aes.h>
#endif
#include <stdio.h>
#include <stdlib.h>
-#include <assert.h>
#ifdef HAVE_SIGNAL_H
#include <signal.h>
#endif
#include <stdlib.h>
#include <stdio.h>
-#include <assert.h>
#include <string.h>
#include "common/torint.h"
#include <stdlib.h>
#include <string.h>
-#include <assert.h>
#include "ht.h"
#include "orconfig.h"
#include <stdarg.h>
-#include <assert.h>
// #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#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>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include <assert.h>
#include <signal.h>
#ifdef HAVE_NETINET_IN_H
#ifdef HAVE_ERRNO_H
#include <errno.h>
#endif
-#ifdef HAVE_ASSERT_H
-#include <assert.h>
-#endif
#ifdef HAVE_TIME_H
#include <time.h>
#endif
typedef struct tor_version_t tor_version_t;
#endif /* !defined(TOR_OR_H) */
-
#if 0
#include <stdlib.h>
#include <stdarg.h>
-#include <assert.h>
#endif
#include "common/util.h"
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
-#include <assert.h>
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>