Skip to content
Snippets Groups Projects
Commit 1395d93c authored by Mark Spencer's avatar Mark Spencer
Browse files

Add "ast_flags_all" mask (bug #3136)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4543 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 8e1a2d57
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,7 @@
#include <netdb.h>
#include <pthread.h>
#include <asterisk/lock.h>
#include <limits.h>
#define ast_test_flag(p,flag) ((p)->flags & (flag))
......@@ -28,6 +29,8 @@
#define ast_set2_flag(p,value,flag) ((value) ? ast_set_flag(p,flag) : ast_clear_flag(p,flag))
#define AST_FLAGS_ALL UINT_MAX
static inline int ast_strlen_zero(const char *s)
{
return (*s == '\0');
......@@ -39,7 +42,7 @@ struct ast_hostent {
};
struct ast_flags {
int flags;
unsigned int flags;
};
extern char *ast_strip(char *buf);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment