]> git.proxmox.com Git - mirror_lxc.git/commit
Use the proper type for rlim_t, fixing build failure on x32.
authorAdam Borowski <kilobyte@angband.pl>
Sun, 15 Oct 2017 19:20:34 +0000 (19:20 +0000)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 19 Oct 2017 01:22:17 +0000 (21:22 -0400)
commitd6223eead3bed6e337b24c48e0824738666ae4ba
tree24d0b270dd6d697fc975d09cf4942206ba543df7
parentd9d811bf67fc236a9976586ee83a4d56acb0d914
Use the proper type for rlim_t, fixing build failure on x32.

Assuming a particular width of a type (or equivalence with "long") doesn't
work everywhere.  On new architectures, LFS/etc is enabled by default,
making rlim_t same as rlim64_t even if long is only 32-bit.

Not sure how you handle too big values -- you may want to re-check the
strtoull part.

Signed-off-by: Adam Borowski <kilobyte@angband.pl>
src/lxc/confile.c
src/lxc/confile_legacy.c
src/lxc/confile_utils.c
src/lxc/confile_utils.h