summaryrefslogtreecommitdiff
path: root/src/common.h
blob: fea0db74aa4d8297c96f66e9198477807e144f51 (plain)
1
2
3
4
5
6
7
8
9
#ifdef DEBUG
#define DBG(...) do { fprintf(stderr, __VA_ARGS__); putc('\n', stderr); } while (0)
#else
#define DBG(...)
#endif

#define IN_ADDR_PORT(addr) (((struct sockaddr_in *)addr)->sin_port)

extern int free_mem_on_exit;