Move common #define's into an enum.
This commit is contained in:
parent
e8cda1fa30
commit
1c920b85f6
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue