• Kir Kolyshkin's avatar
    vdso01 test: fix for clang · 4be8daa1
    Kir Kolyshkin authored
    clang complains:
    > clang -g -O2 -Wall -Werror -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0  -iquote ../lib/arch/x86/include -I../lib   vdso01.c ../lib/libzdtmtst.a ../lib/libzdtmtst.a -lrt -o vdso01
    > vdso01.c:305:6: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value
    >       [-Werror,-Wabsolute-value]
    >         if (abs(ts1.tv_sec - ts2.tv_sec) > TIME_DELTA_SEC) {
    >             ^
    > vdso01.c:305:6: note: use function 'labs' instead
    
    Let's use labs() indeed.
    Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
    4be8daa1
Name
Last commit
Last update
..
lib Loading commit data...
static Loading commit data...
transition Loading commit data...
.gitignore Loading commit data...
Makefile Loading commit data...
Makefile.inc Loading commit data...