mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2025-12-10 07:44:39 +01:00
Fix compilation in 64 bit
This commit is contained in:
parent
aefaf7844d
commit
3021165bb4
1 changed files with 2 additions and 2 deletions
|
|
@ -1893,7 +1893,7 @@ static int set_BridgingBridgeSTP_HelloTime(char *refparam, struct dmctx *ctx, vo
|
|||
return 0;
|
||||
case VALUESET:
|
||||
// Value defined in system is in seconds but in datamodel this is in centiseconds, convert the value to seconds
|
||||
snprintf(buf, sizeof(buf), "%ld", DM_STRTOL(value) / 100);
|
||||
snprintf(buf, sizeof(buf), "%u", (uint32_t)DM_STRTOL(value) / 100);
|
||||
dmuci_set_value_by_section(((struct bridge_args *)data)->bridge_sec, "hello_time", buf);
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -1922,7 +1922,7 @@ static int set_BridgingBridgeSTP_MaxAge(char *refparam, struct dmctx *ctx, void
|
|||
return 0;
|
||||
case VALUESET:
|
||||
// Value defined in system is in seconds but in datamodel this is in centiseconds, convert the value to seconds
|
||||
snprintf(buf, sizeof(buf), "%ld", DM_STRTOL(value) / 100);
|
||||
snprintf(buf, sizeof(buf), "%u", (uint32_t)DM_STRTOL(value) / 100);
|
||||
dmuci_set_value_by_section(((struct bridge_args *)data)->bridge_sec, "max_age", buf);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue