• Kir Kolyshkin's avatar
    inotify_system tests: fix for clang · fe21d145
    Kir Kolyshkin authored
    When compiling with clang, it complains like this:
    
    > clang -g -O2 -Wall -Werror -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0  -iquote ../lib/arch/x86/include -I../lib   inotify_system.c ../lib/libzdtmtst.a ../lib/libzdtmtst.a -o inotify_system
    > inotify_system.c:323:50: error: comparison of unsigned expression < 0 is always false [-Werror,-Wtautological-compare]
    >         if ((common_desc.inot < 0) || (common_desc.file < 0) || \
    >                                        ~~~~~~~~~~~~~~~~ ^ ~
    > inotify_system.c:324:21: error: comparison of unsigned expression < 0 is always false [-Werror,-Wtautological-compare]
    >                         (common_desc.dir < 0) || (common_desc.link < 0)) {
    >                          ~~~~~~~~~~~~~~~ ^ ~
    > inotify_system.c:324:47: error: comparison of unsigned expression < 0 is always false [-Werror,-Wtautological-compare]
    >                         (common_desc.dir < 0) || (common_desc.link < 0)) {
    >                                                   ~~~~~~~~~~~~~~~~ ^ ~
    > 3 errors generated.
    
    Indeed these fields are uint32_t. As they are used to store the results of
    inotify_init() and inotify_add_watch() function calls, the type should be int.
    Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
    fe21d145
Name
Last commit
Last update
..
inhfd Loading commit data...
jenkins Loading commit data...
others Loading commit data...
zdtm Loading commit data...
.gitignore Loading commit data...
Makefile Loading commit data...
abrt.sh Loading commit data...
check_actions.py Loading commit data...
crit-recode.py Loading commit data...
criu.py Loading commit data...
groups.desc Loading commit data...
inhfd.desc Loading commit data...
rpc_pb2.py Loading commit data...
show_action.sh Loading commit data...
umount2.c Loading commit data...
zdtm.desc Loading commit data...
zdtm.py Loading commit data...
zdtm_ct.c Loading commit data...
zdtm_mount_cgroups Loading commit data...