From d055d8d001b5002f296339f10f824086ce15f934 Mon Sep 17 00:00:00 2001 From: Olaf Bergmann Date: Wed, 12 Jul 2023 12:39:29 +0200 Subject: [PATCH] session.h: Move inclusion of string.h into .c files string.h is required for memcmp() that is used in session.c and dtls_debug.c. Therefore, the header file needs to be included only in these two files. Change-Id: I11db1c37a7cc13d8fa2826f6d3e38d3765f4a4ec --- dtls_debug.c | 2 ++ session.c | 2 ++ session.h | 2 -- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dtls_debug.c b/dtls_debug.c index 70c88ff6..ad014669 100644 --- a/dtls_debug.c +++ b/dtls_debug.c @@ -28,6 +28,8 @@ #include #endif +#include + #ifdef HAVE_TIME_H #include #endif diff --git a/session.c b/session.c index 2267d938..346eae5c 100644 --- a/session.c +++ b/session.c @@ -14,6 +14,8 @@ * *******************************************************************************/ +#include + #include "session.h" #ifdef HAVE_ASSERT_H diff --git a/session.h b/session.h index 0e05e1a1..3aa48c53 100644 --- a/session.h +++ b/session.h @@ -17,8 +17,6 @@ #ifndef _DTLS_SESSION_H_ #define _DTLS_SESSION_H_ -#include - #include "tinydtls.h" #include "global.h"