1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-21 23:19:03 +00:00

Silence ASan warning due to definition of container_of in tests. Same as r32536

This commit is contained in:
dmiller
2016-08-03 18:29:56 +00:00
parent 71e3c76f95
commit d30b3c36a8
2 changed files with 2 additions and 6 deletions

View File

@@ -5,6 +5,8 @@
#include "test-common.h"
#include "../src/gh_list.h"
/* For container_of */
#include "../src/gh_heap.h"
#include <stdint.h>
#include <time.h>

View File

@@ -16,12 +16,6 @@
#include <nsock.h>
#if !defined(container_of)
#define container_of(ptr, type, member) \
((type *)((char *)(ptr)-(char *)(&((type *)0)->member)))
#endif
#define PORT_UDP 55234
#define PORT_TCP 55235
#define PORT_TCPSSL 55236