mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Silence ASan warning due to definition of container_of in tests. Same as r32536
This commit is contained in:
parent
71e3c76f95
commit
d30b3c36a8
2 changed files with 2 additions and 6 deletions
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue