diff mbox series

Add some missing #include

Message ID 20200420083606.38653-1-christian.storm@siemens.com
State Accepted
Headers show
Series Add some missing #include | expand

Commit Message

Christian Storm April 20, 2020, 8:36 a.m. UTC
Add #include "util.h" missing for
- SWUPDATE_SHA_DIGEST_LENGTH,
- function return type server_op_res_t.

Add #include <stdlib.h> missing for size_t.

Signed-off-by: Christian Storm <christian.storm@siemens.com>
---
 include/channel_curl.h     | 1 +
 include/network_ipc.h      | 1 +
 include/state.h            | 1 +
 include/suricatta/server.h | 1 +
 4 files changed, 4 insertions(+)

Comments

Stefano Babic April 20, 2020, 9:27 a.m. UTC | #1
On 20.04.20 10:36, Christian Storm wrote:
> Add #include "util.h" missing for
> - SWUPDATE_SHA_DIGEST_LENGTH,
> - function return type server_op_res_t.
> 
> Add #include <stdlib.h> missing for size_t.
> 
> Signed-off-by: Christian Storm <christian.storm@siemens.com>
> ---
>  include/channel_curl.h     | 1 +
>  include/network_ipc.h      | 1 +
>  include/state.h            | 1 +
>  include/suricatta/server.h | 1 +
>  4 files changed, 4 insertions(+)
> 
> diff --git a/include/channel_curl.h b/include/channel_curl.h
> index a88d817..321526b 100644
> --- a/include/channel_curl.h
> +++ b/include/channel_curl.h
> @@ -6,6 +6,7 @@
>   */
>  
>  #pragma once
> +#include "util.h"
>  #ifdef CONFIG_JSON
>  #include <json-c/json.h>
>  #endif
> diff --git a/include/network_ipc.h b/include/network_ipc.h
> index fea1698..9cc40f8 100644
> --- a/include/network_ipc.h
> +++ b/include/network_ipc.h
> @@ -9,6 +9,7 @@
>  #ifndef _IPC_H
>  #define _IPC_H
>  
> +#include <stdlib.h>
>  #include <stdbool.h>
>  #include "swupdate_status.h"
>  
> diff --git a/include/state.h b/include/state.h
> index 497a87d..7294dbe 100644
> --- a/include/state.h
> +++ b/include/state.h
> @@ -6,6 +6,7 @@
>   */
>  
>  #pragma once
> +#include "util.h"
>  #include <stdbool.h>
>  
>  #ifdef CONFIG_SURICATTA_STATE_CHOICE_BOOTLOADER
> diff --git a/include/suricatta/server.h b/include/suricatta/server.h
> index e8d4926..2f862f2 100644
> --- a/include/suricatta/server.h
> +++ b/include/suricatta/server.h
> @@ -8,6 +8,7 @@
>  #pragma once
>  
>  #include <network_ipc.h>
> +#include "util.h"
>  
>  /* Suricatta Server Interface.
>   *
> 

Acked-by : Stefano Babic <sbabic@denx.de>

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/include/channel_curl.h b/include/channel_curl.h
index a88d817..321526b 100644
--- a/include/channel_curl.h
+++ b/include/channel_curl.h
@@ -6,6 +6,7 @@ 
  */
 
 #pragma once
+#include "util.h"
 #ifdef CONFIG_JSON
 #include <json-c/json.h>
 #endif
diff --git a/include/network_ipc.h b/include/network_ipc.h
index fea1698..9cc40f8 100644
--- a/include/network_ipc.h
+++ b/include/network_ipc.h
@@ -9,6 +9,7 @@ 
 #ifndef _IPC_H
 #define _IPC_H
 
+#include <stdlib.h>
 #include <stdbool.h>
 #include "swupdate_status.h"
 
diff --git a/include/state.h b/include/state.h
index 497a87d..7294dbe 100644
--- a/include/state.h
+++ b/include/state.h
@@ -6,6 +6,7 @@ 
  */
 
 #pragma once
+#include "util.h"
 #include <stdbool.h>
 
 #ifdef CONFIG_SURICATTA_STATE_CHOICE_BOOTLOADER
diff --git a/include/suricatta/server.h b/include/suricatta/server.h
index e8d4926..2f862f2 100644
--- a/include/suricatta/server.h
+++ b/include/suricatta/server.h
@@ -8,6 +8,7 @@ 
 #pragma once
 
 #include <network_ipc.h>
+#include "util.h"
 
 /* Suricatta Server Interface.
  *