mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Remove spurious "netintet" check from configure.in
svn:r15672
This commit is contained in:
parent
5f080cbaec
commit
8bc2ab03f8
@ -315,7 +315,7 @@ AC_CHECK_HEADERS(netdb.h sys/ioctl.h sys/socket.h arpa/inet.h netinet/in.h pwd.h
|
|||||||
|
|
||||||
dnl These headers are not essential
|
dnl These headers are not essential
|
||||||
|
|
||||||
AC_CHECK_HEADERS(stdint.h sys/types.h inttypes.h sys/param.h sys/wait.h limits.h sys/limits.h netinet/in.h arpa/inet.h machine/limits.h syslog.h sys/time.h sys/resource.h inttypes.h utime.h sys/utime.h sys/mman.h netintet/in.h netinet/in6.h malloc.h sys/syslimits.h malloc/malloc.h)
|
AC_CHECK_HEADERS(stdint.h sys/types.h inttypes.h sys/param.h sys/wait.h limits.h sys/limits.h netinet/in.h arpa/inet.h machine/limits.h syslog.h sys/time.h sys/resource.h inttypes.h utime.h sys/utime.h sys/mman.h netinet/in6.h malloc.h sys/syslimits.h malloc/malloc.h)
|
||||||
|
|
||||||
TOR_CHECK_PROTOTYPE(malloc_good_size, HAVE_MALLOC_GOOD_SIZE_PROTOTYPE,
|
TOR_CHECK_PROTOTYPE(malloc_good_size, HAVE_MALLOC_GOOD_SIZE_PROTOTYPE,
|
||||||
[#ifdef HAVE_MALLOC_H
|
[#ifdef HAVE_MALLOC_H
|
||||||
|
@ -272,7 +272,7 @@ static struct pgfree *px;
|
|||||||
char *malloc_options;
|
char *malloc_options;
|
||||||
|
|
||||||
/* Name of the current public function. */
|
/* Name of the current public function. */
|
||||||
static char *malloc_func;
|
static const char *malloc_func;
|
||||||
|
|
||||||
#define MMAP(size) \
|
#define MMAP(size) \
|
||||||
mmap((void *)0, (size), PROT_READ|PROT_WRITE, MAP_ANON|MAP_PRIVATE, \
|
mmap((void *)0, (size), PROT_READ|PROT_WRITE, MAP_ANON|MAP_PRIVATE, \
|
||||||
@ -439,20 +439,20 @@ malloc_dump(int fd)
|
|||||||
extern char *__progname;
|
extern char *__progname;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
wrterror(char *p)
|
wrterror(const char *p)
|
||||||
{
|
{
|
||||||
char *q = " error: ";
|
const char *q = " error: ";
|
||||||
struct iovec iov[5];
|
struct iovec iov[5];
|
||||||
|
|
||||||
iov[0].iov_base = __progname;
|
iov[0].iov_base = __progname;
|
||||||
iov[0].iov_len = strlen(__progname);
|
iov[0].iov_len = strlen(__progname);
|
||||||
iov[1].iov_base = malloc_func;
|
iov[1].iov_base = (char*)malloc_func;
|
||||||
iov[1].iov_len = strlen(malloc_func);
|
iov[1].iov_len = strlen(malloc_func);
|
||||||
iov[2].iov_base = q;
|
iov[2].iov_base = (char*)q;
|
||||||
iov[2].iov_len = strlen(q);
|
iov[2].iov_len = strlen(q);
|
||||||
iov[3].iov_base = p;
|
iov[3].iov_base = (char*)p;
|
||||||
iov[3].iov_len = strlen(p);
|
iov[3].iov_len = strlen(p);
|
||||||
iov[4].iov_base = "\n";
|
iov[4].iov_base = (char*)"\n";
|
||||||
iov[4].iov_len = 1;
|
iov[4].iov_len = 1;
|
||||||
writev(STDERR_FILENO, iov, 5);
|
writev(STDERR_FILENO, iov, 5);
|
||||||
|
|
||||||
@ -467,9 +467,9 @@ wrterror(char *p)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
wrtwarning(char *p)
|
wrtwarning(const char *p)
|
||||||
{
|
{
|
||||||
char *q = " warning: ";
|
const char *q = " warning: ";
|
||||||
struct iovec iov[5];
|
struct iovec iov[5];
|
||||||
|
|
||||||
if (malloc_abort)
|
if (malloc_abort)
|
||||||
@ -479,13 +479,13 @@ wrtwarning(char *p)
|
|||||||
|
|
||||||
iov[0].iov_base = __progname;
|
iov[0].iov_base = __progname;
|
||||||
iov[0].iov_len = strlen(__progname);
|
iov[0].iov_len = strlen(__progname);
|
||||||
iov[1].iov_base = malloc_func;
|
iov[1].iov_base = (char*)malloc_func;
|
||||||
iov[1].iov_len = strlen(malloc_func);
|
iov[1].iov_len = strlen(malloc_func);
|
||||||
iov[2].iov_base = q;
|
iov[2].iov_base = (char*)q;
|
||||||
iov[2].iov_len = strlen(q);
|
iov[2].iov_len = strlen(q);
|
||||||
iov[3].iov_base = p;
|
iov[3].iov_base = (char*)p;
|
||||||
iov[3].iov_len = strlen(p);
|
iov[3].iov_len = strlen(p);
|
||||||
iov[4].iov_base = "\n";
|
iov[4].iov_base = (char*)"\n";
|
||||||
iov[4].iov_len = 1;
|
iov[4].iov_len = 1;
|
||||||
|
|
||||||
writev(STDERR_FILENO, iov, 5);
|
writev(STDERR_FILENO, iov, 5);
|
||||||
@ -1707,6 +1707,7 @@ free_bytes(void *ptr, u_long index, struct pginfo * info)
|
|||||||
#endif /* MALLOC_EXTRA_SANITY */
|
#endif /* MALLOC_EXTRA_SANITY */
|
||||||
void *vp;
|
void *vp;
|
||||||
long i;
|
long i;
|
||||||
|
(void) index;
|
||||||
|
|
||||||
/* Find the chunk number on the page */
|
/* Find the chunk number on the page */
|
||||||
i = ((u_long) ptr & malloc_pagemask) >> info->shift;
|
i = ((u_long) ptr & malloc_pagemask) >> info->shift;
|
||||||
|
Loading…
Reference in New Issue
Block a user