mirror of
https://dev.iopsys.eu/system/sysmngr.git
synced 2025-12-10 00:06:19 +01:00
Fix compilation error
This commit is contained in:
parent
aaca7af64e
commit
f5dcef5463
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue