[PATCH] fix comparison warning on 32-bit architectures.
Mikulas Patocka <[email protected]> Tue, 13 Aug 2024 13:35:22 +0200 (CEST)
| Newsgroups | dev.linux.lists.lvm-devel |
|---|---|
| Message-ID | <[email protected]> |
Hi This patch fixes a warning about comparison between signed and unsigned integer. Signed-off-by: Mikulas Patocka <[email protected]> --- test/lib/brick-shelltest.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) Index: lvm2/test/lib/brick-shelltest.h =================================================================== --- lvm2.orig/test/lib/brick-shelltest.h 2024-08-13 13:31:34.000000000 +0200 +++ lvm2/test/lib/brick-shelltest.h 2024-08-13 13:32:24.000000000 +0200 @@ -713,7 +713,8 @@ struct KMsg : Source { void transform( char *buf, ssize_t *sz ) { char newbuf[ buffer_size ]; struct tm time_info; - unsigned level, num, pos; + int pos; + unsigned level, num; unsigned long t; time_t tt; size_t len;