From f5dcef54630bd8482bc1afcb205a1baab4c7e477 Mon Sep 17 00:00:00 2001 From: Vivek Kumar Dutta <vivek.dutta@iopsys.eu> Date: Thu, 7 Nov 2024 13:24:04 +0530 Subject: [PATCH] Fix compilation error --- gitlab-ci/shared.sh | 2 +- src/reboots.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gitlab-ci/shared.sh b/gitlab-ci/shared.sh index 3fe0bce..dc60651 100644 --- a/gitlab-ci/shared.sh +++ b/gitlab-ci/shared.sh @@ -18,7 +18,7 @@ function install_bbfdm() if [ -n "${BBFDM_BRANCH}" ]; then exec_cmd git clone -b ${BBFDM_BRANCH} https://dev.iopsys.eu/bbf/bbfdm.git /opt/dev/bbfdm else - exec_cmd git clone -b sysmngr https://dev.iopsys.eu/bbf/bbfdm.git /opt/dev/bbfdm + exec_cmd git clone https://dev.iopsys.eu/bbf/bbfdm.git /opt/dev/bbfdm fi cd /opt/dev/bbfdm diff --git a/src/reboots.c b/src/reboots.c index 120fd28..dcc2a75 100644 --- a/src/reboots.c +++ b/src/reboots.c @@ -174,7 +174,7 @@ static void create_reboot_section(const char *trigger, const char *reason) if (!trigger || !reason) return; - snprintf(sec_name, sizeof(sec_name), "reboot_%ld", time(NULL)); + snprintf(sec_name, sizeof(sec_name), "reboot_%ld", (long int)time(NULL)); calculate_boot_time(boot_time, sizeof(boot_time)); sysmngr_uci_set("sysmngr", sec_name, NULL, "reboot"); -- GitLab