]> granicus.if.org Git - strace/commitdiff
tests: use kernel_ulong_t as argument type in setfsuid/setfsgid tests
authorEugene Syromyatnikov <evgsyr@gmail.com>
Mon, 28 Nov 2016 19:00:05 +0000 (22:00 +0300)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 4 Dec 2016 17:42:38 +0000 (17:42 +0000)
* setfsugid.c: Include "kernel_types.h".
(main): Change type of entries of the "tests" array from long to
kernel_ulong_t.

tests/setfsugid.c

index 627a8dd7a05c2b1f260d0fdcb9c63697d07ca0b2..a410c9d9e1958e6a904ea959ba050b3a8d8ab7f1 100644 (file)
@@ -30,6 +30,8 @@
 #include <stdio.h>
 #include <unistd.h>
 
+#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,