Fix compilation error

This commit is contained in:
Vivek Kumar Dutta 2024-11-07 13:24:04 +05:30
parent aaca7af64e
commit f5dcef5463
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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");