diff options
author | Flavio Santes <flavio.santes@intel.com> | 2017-02-01 19:38:11 -0600 |
---|---|---|
committer | Jukka Rissanen <jukka.rissanen@linux.intel.com> | 2017-02-03 15:59:18 +0200 |
commit | 3a0518928435b86c18dbf1e046f9ab521b608933 (patch) | |
tree | d94e309d7cf469315ea3530546f150d99dbb5139 /samples | |
parent | 660b0324e0244d0e17703c301b6cb2843b5d9eca (diff) |
samples/net/dns: Move conf variables to config.h and delete unused defines
- Move the MAX_ADDRESSES macro to config.h.
Document the meaning and usage of this macro
- Delete unused defines
Change-Id: I035feb605611e564db15cba77d6a3dce8409ca18
Signed-off-by: Flavio Santes <flavio.santes@intel.com>
Diffstat (limited to 'samples')
-rw-r--r-- | samples/net/dns_client/src/config.h | 6 | ||||
-rw-r--r-- | samples/net/dns_client/src/main.c | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/samples/net/dns_client/src/config.h b/samples/net/dns_client/src/config.h index 17a774ada..d4c21799d 100644 --- a/samples/net/dns_client/src/config.h +++ b/samples/net/dns_client/src/config.h @@ -22,4 +22,10 @@ #define APP_SLEEP_MSECS 400 +/* The DNS server may return more than 1 IP address. + * This value controls the max number of IP addresses + * that the client will store per query. + */ +#define MAX_ADDRESSES 4 + #endif diff --git a/samples/net/dns_client/src/main.c b/samples/net/dns_client/src/main.c index a7d319d13..072395081 100644 --- a/samples/net/dns_client/src/main.c +++ b/samples/net/dns_client/src/main.c @@ -15,8 +15,6 @@ #include "config.h" -#define RC_STR(rc) (rc == 0 ? "OK" : "ERROR") -#define MAX_ADDRESSES 4 #define STACK_SIZE 2048 uint8_t stack[STACK_SIZE]; |