From 5ac13b5534177bf8fd65548c4d6963ba4a561e2d Mon Sep 17 00:00:00 2001 From: Dominik Loidolt <dominik.loidolt@univie.ac.at> Date: Fri, 11 Nov 2022 13:41:17 +0100 Subject: [PATCH] fix some includes --- cmp_tool.c | 1 - lib/cmp_data_types.c | 1 + lib/cmp_entity.c | 3 +-- lib/cmp_guess.c | 1 - lib/decmp.c | 1 - lib/rdcu_cmd.c | 2 -- lib/rdcu_ctrl.c | 2 +- lib/rdcu_pkt_to_file.c | 1 + test/cmp_entity/test_cmp_entity.c | 4 +--- 9 files changed, 5 insertions(+), 11 deletions(-) diff --git a/cmp_tool.c b/cmp_tool.c index e22afc7..edae320 100644 --- a/cmp_tool.c +++ b/cmp_tool.c @@ -23,7 +23,6 @@ #include <stdlib.h> #include <limits.h> #include <getopt.h> -#include <time.h> #include "cmp_tool-config.h" #include "cmp_io.h" diff --git a/lib/cmp_data_types.c b/lib/cmp_data_types.c index 4437a39..373dd51 100644 --- a/lib/cmp_data_types.c +++ b/lib/cmp_data_types.c @@ -21,6 +21,7 @@ #include <limits.h> +#include <cmp_support.h> #include <cmp_data_types.h> #include <cmp_debug.h> #include <byteorder.h> diff --git a/lib/cmp_entity.c b/lib/cmp_entity.c index 1ca2b20..57fafd8 100644 --- a/lib/cmp_entity.c +++ b/lib/cmp_entity.c @@ -21,7 +21,6 @@ #include <stdint.h> #include <stdio.h> #include <string.h> -#include <limits.h> #if defined __has_include # if __has_include(<time.h>) # include <time.h> @@ -2291,7 +2290,7 @@ static time_t my_timegm(struct tm *tm) /* * @brief Generate a timestamp for the compression header * - * @param ts pointer to an object of type struct timespec of the + * @param ts pointer to an object of type struct timespec of the * timestamp time, NULL for now * * @returns returns compression header timestamp or 0 on error diff --git a/lib/cmp_guess.c b/lib/cmp_guess.c index 8638795..b13fe7c 100644 --- a/lib/cmp_guess.c +++ b/lib/cmp_guess.c @@ -21,7 +21,6 @@ #include <limits.h> #include <stdio.h> #include <stdlib.h> -#include <string.h> #include <cmp_data_types.h> #include <cmp_icu.h> diff --git a/lib/decmp.c b/lib/decmp.c index 5360802..18ebe5d 100644 --- a/lib/decmp.c +++ b/lib/decmp.c @@ -22,7 +22,6 @@ #include <stdint.h> #include <stdio.h> -#include <stdlib.h> #include <limits.h> #include <string.h> diff --git a/lib/rdcu_cmd.c b/lib/rdcu_cmd.c index 2154835..39c7c6d 100644 --- a/lib/rdcu_cmd.c +++ b/lib/rdcu_cmd.c @@ -18,9 +18,7 @@ */ -#include <stdio.h> #include <stdlib.h> -#include <string.h> #include <rmap.h> #include <rdcu_cmd.h> diff --git a/lib/rdcu_ctrl.c b/lib/rdcu_ctrl.c index 6f743c6..ba892ac 100644 --- a/lib/rdcu_ctrl.c +++ b/lib/rdcu_ctrl.c @@ -59,10 +59,10 @@ #include <stdio.h> #include <stdlib.h> +#include <stdint.h> #include <string.h> #include <byteorder.h> -#include <rmap.h> #include <rdcu_cmd.h> #include <rdcu_ctrl.h> #include <rdcu_rmap.h> diff --git a/lib/rdcu_pkt_to_file.c b/lib/rdcu_pkt_to_file.c index 9e80125..61088db 100644 --- a/lib/rdcu_pkt_to_file.c +++ b/lib/rdcu_pkt_to_file.c @@ -28,6 +28,7 @@ #include <errno.h> #include <sys/stat.h> +#include <cmp_support.h> #include <rdcu_pkt_to_file.h> #include <cmp_rdcu_extended.h> #include <rdcu_rmap.h> diff --git a/test/cmp_entity/test_cmp_entity.c b/test/cmp_entity/test_cmp_entity.c index 70b5000..f4eb523 100644 --- a/test/cmp_entity/test_cmp_entity.c +++ b/test/cmp_entity/test_cmp_entity.c @@ -17,7 +17,7 @@ */ -#include <stdlib.h> +#include <string.h> #if defined __has_include # if __has_include(<time.h>) # include <time.h> @@ -29,8 +29,6 @@ #include <unity.h> #include <cmp_entity.h> -#include <cmp_io.h> -#include <cmp_icu.h> #include <cmp_data_types.h> -- GitLab