mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-31 06:15:55 +00:00
[master] Print preferred life and max life as unsigned ints
[rt37084] Change how we print the preferred_live and max_life variables into envvironment strings in the client code from being a signed int to an unsigned int.
This commit is contained in:
@@ -3862,10 +3862,10 @@ dhc6_marshall_values(const char *prefix, struct client_state *client,
|
||||
}
|
||||
client_envadd(client, prefix, "life_starts", "%d",
|
||||
(int)(addr->starts));
|
||||
client_envadd(client, prefix, "preferred_life", "%d",
|
||||
(int)(addr->preferred_life));
|
||||
client_envadd(client, prefix, "max_life", "%d",
|
||||
(int)(addr->max_life));
|
||||
client_envadd(client, prefix, "preferred_life", "%u",
|
||||
addr->preferred_life);
|
||||
client_envadd(client, prefix, "max_life", "%u",
|
||||
addr->max_life);
|
||||
}
|
||||
|
||||
/* ia fields. */
|
||||
|
Reference in New Issue
Block a user