[prev in list] [next in list] [prev in thread] [next in thread]
List: openembedded-core
Subject: [OE-core] [PATCH 2/2] strace: Replace off64_t with off_t in sync_file_range.c test
From: "Khem Raj" <raj.khem () gmail ! com>
Date: 2022-12-30 20:32:54
Message-ID: 20221230203254.1087816-2-raj.khem () gmail ! com
[Download RAW message or body]
Content-Transfer-Encoding: 8bit
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
.../0002-tests-Replace-off64_t-with-off_t.patch | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
diff --git a/meta/recipes-devtools/strace/strace/0002-tests-Replace-off64_t-with-off_t.patch \
b/meta/recipes-devtools/strace/strace/0002-tests-Replace-off64_t-with-off_t.patch \
index ce0428e977..0cabdfe99f 100644
--- a/meta/recipes-devtools/strace/strace/0002-tests-Replace-off64_t-with-off_t.patch
+++ b/meta/recipes-devtools/strace/strace/0002-tests-Replace-off64_t-with-off_t.patch
@@ -13,8 +13,6 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
tests/sync_file_range2.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
-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[] = {
@@ -26,8 +24,6 @@ index 10723785c..b9597e697 100644
-0x8000000000000000LL,
-0x5060708090a0b0c0LL,
-1LL,
-diff --git a/tests/sync_file_range2.c b/tests/sync_file_range2.c
-index 0f7c9e428..15a5fec71 100644
--- a/tests/sync_file_range2.c
+++ b/tests/sync_file_range2.c
@@ -20,8 +20,8 @@ int
@@ -40,4 +36,17 @@ index 0f7c9e428..15a5fec71 100644
+ const off_t nbytes = 0xfacefeedcafef00d;
const unsigned int flags = -1;
+ int rc = sync_file_range(fd, offset, nbytes, flags);
+--- 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);
--
2.39.0
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#175176): https://lists.openembedded.org/g/openembedded-core/message/175176
Mute This Topic: https://lists.openembedded.org/mt/95961095/4454766
Group Owner: openembedded-core+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [openembedded-core@marc.info]
-=-=-=-=-=-=-=-=-=-=-=-
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic