]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/confile_utils.c
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)
committerAdam Borowski <kilobyte@angband.pl>
Mon, 16 Oct 2017 13:12:07 +0000 (15:12 +0200)
commit714608316e4dd6216c68b663666e98962b6a8bae
tree946090d2a5a29b899295bf751b67fff9afe480ed
parent291f64ac27813451f4045e512a8f2c3e425af254
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