diff options
author | Flavio Santes <flavio.santes@intel.com> | 2016-08-04 12:02:35 -0500 |
---|---|---|
committer | Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> | 2016-08-05 23:15:50 +0000 |
commit | a7362cf77fb26be0046da2f1080cfee0d185a91d (patch) | |
tree | b210f276e21920952a9a940faebfb6cbadeb9738 /samples/net/dns_client/src/dns_utils.h | |
parent | 0aa191389cbe79f3b2051b38937350b897e28b9b (diff) |
dns: FIX: use byteorder.h functionsv1.5.0-rc1
The previous version of the DNS Client sample code assumes a
little-endian machine as a target. In this patch we use the byteorder.h
functions to handle the cpu to network order conversions.
Theoretically, this code must run on little and big endian machines.
Cosmetic changes are also applied to other files.
Change-Id: I2b47f6252fa070e0a0253666fde1785530d6aebf
Signed-off-by: Flavio Santes <flavio.santes@intel.com>
Diffstat (limited to 'samples/net/dns_client/src/dns_utils.h')
-rw-r--r-- | samples/net/dns_client/src/dns_utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/net/dns_client/src/dns_utils.h b/samples/net/dns_client/src/dns_utils.h index 934e1978e..865d990e0 100644 --- a/samples/net/dns_client/src/dns_utils.h +++ b/samples/net/dns_client/src/dns_utils.h @@ -17,7 +17,7 @@ #ifndef _DNS_UTILS_H_ #define _DNS_UTILS_H_ -#include <app_buf.h> +#include "app_buf.h" #include <stdint.h> int dns_print_msg_header(uint8_t *header, int size); |