From 1c920b85f608b9abb32f635876798de3be74e457 Mon Sep 17 00:00:00 2001 From: syb0rg Date: Wed, 23 Apr 2014 19:21:10 -0500 Subject: [PATCH] Move common #define's into an enum. --- src/android_dns.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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