From 6dde2bc9a8a4b5b2f3c3e5e4462ea6e707bec915 Mon Sep 17 00:00:00 2001 From: Carsten Schoenert Date: Thu, 13 Sep 2018 18:57:06 +0200 Subject: [PATCH] examples: use the coap2 folder for including coap.h Due the changed installation folder we need to adjust the source path to coap.h for the files within the files of the examples. --- examples/Makefile.am | 2 +- examples/client.c | 2 +- examples/coap-rd.c | 2 +- examples/coap-server.c | 2 +- examples/coap_list.c | 6 +++--- examples/coap_list.h | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/Makefile.am b/examples/Makefile.am index 56630c54..3bceefcf 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -10,7 +10,7 @@ if BUILD_EXAMPLES # picking up the default warning CFLAGS into AM_CFLAGS AM_CFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include \ - -I$(top_srcdir)/include/coap \ + -I$(top_srcdir)/include/coap$(LIBCOAP_API_VERSION) \ $(WARNING_CFLAGS) $(DTLS_CFLAGS) -std=c99 # etsi_iot_01 and tiny are missing diff --git a/examples/client.c b/examples/client.c index 9c6c9e85..105aff4e 100644 --- a/examples/client.c +++ b/examples/client.c @@ -29,7 +29,7 @@ #include #endif -#include +#include #define MAX_USER 128 /* Maximum length of a user name (i.e., PSK * identity) in bytes. */ diff --git a/examples/coap-rd.c b/examples/coap-rd.c index 2dfe30ae..6c4b38f0 100644 --- a/examples/coap-rd.c +++ b/examples/coap-rd.c @@ -38,7 +38,7 @@ #include #endif -#include +#include #define COAP_RESOURCE_CHECK_TIME 2 diff --git a/examples/coap-server.c b/examples/coap-server.c index 59f01925..35009150 100644 --- a/examples/coap-server.c +++ b/examples/coap-server.c @@ -36,7 +36,7 @@ /* Need to refresh time once per sec */ #define COAP_RESOURCE_CHECK_TIME 1 -#include +#include #ifndef min #define min(a,b) ((a) < (b) ? (a) : (b)) diff --git a/examples/coap_list.c b/examples/coap_list.c index fc816220..70f8bc41 100644 --- a/examples/coap_list.c +++ b/examples/coap_list.c @@ -30,9 +30,9 @@ #include #include -#include -#include -#include +#include +#include +#include #include "coap_list.h" diff --git a/examples/coap_list.h b/examples/coap_list.h index 32b7ea8b..20d0a984 100644 --- a/examples/coap_list.h +++ b/examples/coap_list.h @@ -28,7 +28,7 @@ #ifndef _COAP_LIST_H_ #define _COAP_LIST_H_ -#include +#include typedef struct coap_list_t { struct coap_list_t *next;