Move common #define's into an enum.

This commit is contained in:
syb0rg 2014-04-23 19:21:10 -05:00
parent e8cda1fa30
commit 1c920b85f6
1 changed files with 1 additions and 6 deletions

View File

@ -20,12 +20,7 @@ typedef struct {
unsigned arcount :16;
} HEADER;
#define NOERROR 0
#define FORMERR 1
#define SERVFAIL 2
#define NXDOMAIN 3
#define NOTIMP 4
#define REFUSED 5
typedef enum {NOERROR, FORMERR, SERVFAIL, NXDOMAIN, NOTIMP, REFUSED} Error;
#define C_IN 1