From 84aa26871a4e29c7d5ae3faf5fca55fefab9e01c Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Mon, 26 Oct 2015 22:58:23 +0100 Subject: cast st_mode to avoid warning on Solaris --- lr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lr.c b/lr.c index 7220dd2..8c7892c 100644 --- a/lr.c +++ b/lr.c @@ -1028,7 +1028,7 @@ print(const void *nodep, const VISIT which, const int depth) printf("%s", buf); break; } - case 'm': printf("%04o", fi->sb.st_mode & 07777); break; + case 'm': printf("%04o", (unsigned int)fi->sb.st_mode & 07777); break; case 'M': print_mode(fi->sb.st_mode); break; case 'y': putchar("0pcCd?bBf?l?s???"[(fi->sb.st_mode >> 12) & 0x0f]); -- cgit 1.4.1