• Kir Kolyshkin's avatar
    Use rlim_t where appropriate · d6d034a9
    Kir Kolyshkin authored
    I got the following then trying to compile CRIU on ARM with clang:
    
    > criu/cr-restore.c:2476:22: error: implicit conversion from 'unsigned
    > long long' to 'unsigned long' changes value from 18446744073709551615 to
    > 4294967295 [-Werror,-Wconstant-conversion]
    >         return ival == -1 ? RLIM_INFINITY : ival;
    >         ~~~~~~              ^~~~~~~~~~~~~
    > /usr/include/arm-linux-gnueabihf/bits/resource.h:117:24: note: expanded
    > from macro 'RLIM_INFINITY'
    > # define RLIM_INFINITY 0xffffffffffffffffuLL
    >                        ^~~~~~~~~~~~~~~~~~~~~
    > 1 error generated.
    
    Fix by using provided rlim_t type in this and similar places.
    
    travis-ci: success for Fixes to compile on arm with clang
    Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
    d6d034a9
Name
Last commit
Last update
Documentation Loading commit data...
contrib Loading commit data...
coredump Loading commit data...
crit Loading commit data...
criu Loading commit data...
images Loading commit data...
include/common Loading commit data...
lib Loading commit data...
scripts Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
INSTALL.md Loading commit data...
Makefile Loading commit data...
Makefile.config Loading commit data...
Makefile.install Loading commit data...
Makefile.versions Loading commit data...
README.md Loading commit data...