1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
diff --git a/tests/nlattr.c b/tests/nlattr.c
index 7e47f4e8f..3eb9c53da 100644
--- a/tests/nlattr.c
+++ b/tests/nlattr.c
@@ -43,7 +43,7 @@ test_nlattr(const int fd)
};
struct msg *msg;
struct nlattr *nla;
- unsigned int msg_len;
+ uint32_t msg_len;
long rc;
/* fetch fail: len < sizeof(struct nlattr) */
@@ -250,7 +250,7 @@ test_nla_type(const int fd)
};
struct msg *msg;
struct nlattr *nla;
- unsigned int msg_len;
+ uint32_t msg_len;
long rc;
msg_len = NLMSG_SPACE(sizeof(msg->udm)) + sizeof(*nla);
diff --git a/tests/readahead.c b/tests/readahead.c
index 10723785c..b9597e697 100644
--- a/tests/readahead.c
+++ b/tests/readahead.c
@@ -42,7 +42,7 @@ static const int fds[] = {
0x7fffffff,
};
-static const off64_t offsets[] = {
+static const off_t offsets[] = {
-0x8000000000000000LL,
-0x5060708090a0b0c0LL,
-1LL,
diff --git a/tests/sync_file_range.c b/tests/sync_file_range.c
index e93ab6cf0..dc76865af 100644
--- a/tests/sync_file_range.c
+++ b/tests/sync_file_range.c
@@ -20,8 +20,8 @@ int
main(void)
{
const int fd = -1;
- const off64_t offset = 0xdeadbeefbadc0dedULL;
- const off64_t nbytes = 0xfacefeedcafef00dULL;
+ const off_t offset = 0xdeadbeefbadc0dedULL;
+ const off_t nbytes = 0xfacefeedcafef00dULL;
const unsigned int flags = -1;
int rc = sync_file_range(fd, offset, nbytes, flags);
diff --git a/tests/sync_file_range2.c b/tests/sync_file_range2.c
index b8dc71219..e4b003c4d 100644
--- a/tests/sync_file_range2.c
+++ b/tests/sync_file_range2.c
@@ -20,8 +20,8 @@ int
main(void)
{
const int fd = -1;
- const off64_t offset = 0xdeadbeefbadc0ded;
- const off64_t nbytes = 0xfacefeedcafef00d;
+ const off_t offset = 0xdeadbeefbadc0ded;
+ const off_t nbytes = 0xfacefeedcafef00d;
const unsigned int flags = -1;
int rc = sync_file_range(fd, offset, nbytes, flags);
|