diff --git a/src/android_dns.h b/src/android_dns.h index dafd8ec..1bff986 100644 --- a/src/android_dns.h +++ b/src/android_dns.h @@ -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