From 1395d93c0eeaaadb17380c2c61d42173aca02b24 Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Thu, 23 Dec 2004 11:32:22 +0000 Subject: [PATCH] Add "ast_flags_all" mask (bug #3136) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4543 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- include/asterisk/utils.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/asterisk/utils.h b/include/asterisk/utils.h index c1ed655046..afea97e83a 100755 --- a/include/asterisk/utils.h +++ b/include/asterisk/utils.h @@ -16,6 +16,7 @@ #include #include #include +#include #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);