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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user