|
version 1.1.1.2, 2013/07/22 08:44:29
|
version 1.1.1.3, 2021/03/17 00:39:23
|
|
Line 68
|
Line 68
|
| /* Do our own version of assert() so it shows up in the logs */ |
/* Do our own version of assert() so it shows up in the logs */ |
| #define assert(e) ((e) ? (void)0 : DoAssert(__FILE__, __LINE__, #e)) |
#define assert(e) ((e) ? (void)0 : DoAssert(__FILE__, __LINE__, #e)) |
| |
|
| |
#ifdef __clang__ |
| |
|
| |
#ifndef THREAD_ANNOTATION_ATTRIBUTE__ |
| |
#define THREAD_ANNOTATION_ATTRIBUTE__(x) __attribute__((x)) |
| |
#else |
| |
#define THREAD_ANNOTATION_ATTRIBUTE__(x) |
| |
#endif |
| |
|
| |
#ifndef NO_THREAD_SAFETY_ANALYSIS |
| |
#define NO_THREAD_SAFETY_ANALYSIS \ |
| |
THREAD_ANNOTATION_ATTRIBUTE__(no_thread_safety_analysis) |
| |
#else |
| |
#define NO_THREAD_SAFETY_ANALYSIS |
| |
#endif |
| |
|
| |
#endif /* __clang__ */ |
| |
|
| /* Giant Mutex handling */ |
/* Giant Mutex handling */ |
| #define GIANT_MUTEX_LOCK() assert(pthread_mutex_lock(&gGiantMutex) == 0) |
#define GIANT_MUTEX_LOCK() assert(pthread_mutex_lock(&gGiantMutex) == 0) |
| #define GIANT_MUTEX_UNLOCK() assert(pthread_mutex_unlock(&gGiantMutex) == 0) |
#define GIANT_MUTEX_UNLOCK() assert(pthread_mutex_unlock(&gGiantMutex) == 0) |
|
Line 200
|
Line 217
|
| |
|
| #ifdef PHYSTYPE_PPTP |
#ifdef PHYSTYPE_PPTP |
| extern int gPPTPto; |
extern int gPPTPto; |
| extern int gPPTPtunlimit; | extern unsigned gPPTPtunlimit; |
| #endif |
#endif |
| #ifdef PHYSTYPE_L2TP |
#ifdef PHYSTYPE_L2TP |
| extern int gL2TPto; |
extern int gL2TPto; |
| extern int gL2TPtunlimit; | extern unsigned gL2TPtunlimit; |
| #endif |
#endif |
| extern int gChildren; |
extern int gChildren; |
| extern int gMaxChildren; |
extern int gMaxChildren; |
| |
|
| extern struct globalconf gGlobalConf; /* Global config settings */ |
extern struct globalconf gGlobalConf; /* Global config settings */ |
| |
|
| #ifdef USE_NG_BPF | #if defined(USE_NG_BPF) && !defined(RADSRV) |
| extern struct acl *acl_filters[ACL_FILTERS]; /* mpd's internal bpf filters */ |
extern struct acl *acl_filters[ACL_FILTERS]; /* mpd's internal bpf filters */ |
| #endif |
#endif |
| |
|