[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 05/41] libfshelp-tests: Port to x86_64
From: |
Sergey Bugaev |
Subject: |
[PATCH 05/41] libfshelp-tests: Port to x86_64 |
Date: |
Tue, 9 May 2023 00:31:00 +0300 |
---
libfshelp-tests/race.c | 2 +-
libfshelp-tests/test-fcntl.c | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/libfshelp-tests/race.c b/libfshelp-tests/race.c
index f44ef624..376ada23 100644
--- a/libfshelp-tests/race.c
+++ b/libfshelp-tests/race.c
@@ -33,7 +33,7 @@ int main (int argc, char **argv)
mach_port_t rendezvous = MACH_PORT_NULL;
int fd;
int i;
- uint v;
+ mach_msg_type_number_t v;
int blocked = 0;
char buf[10] = "";
char *bufp;
diff --git a/libfshelp-tests/test-fcntl.c b/libfshelp-tests/test-fcntl.c
index f8c20804..1013ef30 100644
--- a/libfshelp-tests/test-fcntl.c
+++ b/libfshelp-tests/test-fcntl.c
@@ -25,6 +25,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <inttypes.h>
#include <error.h>
#include <errno.h>
#include <unistd.h>
@@ -232,7 +233,7 @@ int main (int argc, char **argv)
printf ("cmd = %s\n ", cmdc);
printf("lock = {l_type, l_whence, l_start, l_len, l_pid} =\n");
#ifdef __GNU__
- printf (" {%s, %s, %lld, %lld, %d}\n",
+ printf (" {%s, %s, %" PRIi64 ", %" PRIi64 ", %d}\n",
#else
printf (" {%s, %s, %ld, %ld, %d}\n",
#endif
--
2.40.1
- [PATCH 00/41] The x86_64 port, Sergey Bugaev, 2023/05/08
- [PATCH 02/41] libports: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 01/41] libshouldbeinlibc: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 03/41] libiohelp: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 04/41] libfshelp: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 06/41] libtrivfs: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 09/41] libstore: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 05/41] libfshelp-tests: Port to x86_64,
Sergey Bugaev <=
- [PATCH 07/41] libnetfs: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 13/41] libmachdev: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 08/41] libdiskfs: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 10/41] libpipe: Fix use-after-realloc, Sergey Bugaev, 2023/05/08
- [PATCH 12/41] libps: Silence a warning, Sergey Bugaev, 2023/05/08
- [PATCH 11/41] libps: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 32/41] tmpfs: Port to x86_64, Sergey Bugaev, 2023/05/08