From: Eugene Syromyatnikov Date: Mon, 28 Nov 2016 19:00:05 +0000 (+0300) Subject: tests: use kernel_ulong_t as argument type in setfsuid/setfsgid tests X-Git-Tag: v4.15~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5be0a95d8efeb81afe7e448b12da03677090e6fb;p=strace tests: use kernel_ulong_t as argument type in setfsuid/setfsgid tests * setfsugid.c: Include "kernel_types.h". (main): Change type of entries of the "tests" array from long to kernel_ulong_t. --- diff --git a/tests/setfsugid.c b/tests/setfsugid.c index 627a8dd7..a410c9d9 100644 --- a/tests/setfsugid.c +++ b/tests/setfsugid.c @@ -30,6 +30,8 @@ #include #include +#include "kernel_types.h" + void printuid(unsigned UGID_TYPE id) { @@ -44,10 +46,10 @@ main(void) { unsigned int ugid = GETUGID; - const long tests[] = { + const kernel_ulong_t tests[] = { ugid, 0xffff0000U | ugid, - (unsigned long) 0xffffffff00000000ULL | ugid, + (kernel_ulong_t) 0xffffffff00000000ULL | ugid, 0xffffU, -1U, -1L,