From 4e40831b0c511acd46723d80e2995be69669d2ac Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 4 Aug 2004 22:04:26 +0000 Subject: (print_stat): Don't assume st_ino / st_dev fits in unsigned long; this isn't true for st_ino on Solaris 9. --- src/stat.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/stat.c') diff --git a/src/stat.c b/src/stat.c index c600b6586..45f53f4e4 100644 --- a/src/stat.c +++ b/src/stat.c @@ -450,16 +450,16 @@ print_stat (char *pformat, char m, char const *filename, void const *data) } break; case 'd': - strcat (pformat, "lu"); - printf (pformat, (unsigned long int) statbuf->st_dev); + strcat (pformat, PRIuMAX); + printf (pformat, (uintmax_t) statbuf->st_dev); break; case 'D': - strcat (pformat, "lx"); - printf (pformat, (unsigned long int) statbuf->st_dev); + strcat (pformat, PRIxMAX); + printf (pformat, (uintmax_t) statbuf->st_dev); break; case 'i': - strcat (pformat, "lu"); - printf (pformat, (unsigned long int) statbuf->st_ino); + strcat (pformat, PRIuMAX); + printf (pformat, (uintmax_t) statbuf->st_ino); break; case 'a': strcat (pformat, "lo"); -- cgit v1.2.3-54-g00ecf