mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-27 09:48:32 +00:00
conf: s/LXC_NUMSTRLEN64/INTTYPE_TO_STRLEN()/
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
9d6ade4ace
commit
d33968ade3
@ -2952,7 +2952,7 @@ int lxc_map_ids(struct lxc_list *idmap, pid_t pid)
|
|||||||
* +
|
* +
|
||||||
* strlen(" ") = 1
|
* strlen(" ") = 1
|
||||||
* +
|
* +
|
||||||
* LXC_NUMSTRLEN64
|
* INTTYPE_TO_STRLEN(uint32_t)
|
||||||
* +
|
* +
|
||||||
* strlen(" ") = 1
|
* strlen(" ") = 1
|
||||||
*
|
*
|
||||||
@ -2960,7 +2960,7 @@ int lxc_map_ids(struct lxc_list *idmap, pid_t pid)
|
|||||||
* LXC_IDMAPLEN bytes available for our the {g,u]id mapping.
|
* LXC_IDMAPLEN bytes available for our the {g,u]id mapping.
|
||||||
*/
|
*/
|
||||||
int ret = 0, gidmap = 0, uidmap = 0;
|
int ret = 0, gidmap = 0, uidmap = 0;
|
||||||
char mapbuf[9 + 1 + LXC_NUMSTRLEN64 + 1 + LXC_IDMAPLEN] = {0};
|
char mapbuf[9 + 1 + INTTYPE_TO_STRLEN(uint32_t) + 1 + LXC_IDMAPLEN] = {0};
|
||||||
bool had_entry = false, use_shadow = false;
|
bool had_entry = false, use_shadow = false;
|
||||||
int hostuid, hostgid;
|
int hostuid, hostgid;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user