Work on bug #48730: Enums should be used instead of multiple defines (where applicable)

This commit is contained in:
Dirk Ziegelmeier
2016-08-12 22:51:43 +02:00
parent 36b9caed23
commit 6dcb2b2415
2 changed files with 31 additions and 27 deletions

View File

@@ -205,10 +205,12 @@ static u16_t dns_txid;
#define DNS_FLAG2_ERR_NAME 0x03
/* DNS protocol states */
#define DNS_STATE_UNUSED 0
#define DNS_STATE_NEW 1
#define DNS_STATE_ASKING 2
#define DNS_STATE_DONE 3
typedef enum {
DNS_STATE_UNUSED = 0,
DNS_STATE_NEW = 1,
DNS_STATE_ASKING = 2,
DNS_STATE_DONE = 3
} dns_state_enum_t;
#ifdef PACK_STRUCT_USE_INCLUDES
# include "arch/bpstruct.h"