1From 1f9a5cb860b3509791e59a8cae9d5f265e832ed0 Mon Sep 17 00:00:00 2001 2From: Khem Raj <raj.khem@gmail.com> 3Date: Sun, 28 May 2023 16:33:15 -0700 4Subject: [PATCH] fs-tests/cmd/readmmap: Replace uint_t with uint32_t 5 6Makes it portable across glibc and musl 7 8Upstream-Status: Pending 9Signed-off-by: Khem Raj <raj.khem@gmail.com> 10--- 11 tests/zfs-tests/cmd/readmmap.c | 5 +++-- 12 1 file changed, 3 insertions(+), 2 deletions(-) 13 14diff --git a/tests/zfs-tests/cmd/readmmap.c b/tests/zfs-tests/cmd/readmmap.c 15index 704ffd55c8..a2590e0e8d 100644 16--- a/tests/zfs-tests/cmd/readmmap.c 17+++ b/tests/zfs-tests/cmd/readmmap.c 18@@ -38,6 +38,7 @@ 19 * 0 : no errors 20 * -------------------------------------------------------------- 21 */ 22+#include <stdint.h> 23 #include <stdio.h> 24 #include <stdlib.h> 25 #include <unistd.h> 26@@ -55,7 +56,7 @@ main(int argc, char **argv) 27 char *buf = NULL; 28 char *map = NULL; 29 int fd = -1, bytes, retval = 0; 30- uint_t seed; 31+ uint32_t seed; 32 33 if (argc < 2 || optind == argc) { 34 (void) fprintf(stderr, 35@@ -92,7 +93,7 @@ main(int argc, char **argv) 36 retval = 1; 37 goto end; 38 } 39- seed = (uint_t)time(NULL); 40+ seed = (uint32_t)time(NULL); 41 srandom(seed); 42 43 idx = random() % size; 44-- 452.40.1 46 47