From f358487f8eb5b8e7eb52177a1896816bce58139b Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sun, 4 Jan 2004 07:06:05 +0000 Subject: [PATCH] Silence a compiler warning on Sun OS systems. --- getgroups.c | 2 +- tls.c | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/getgroups.c b/getgroups.c index b3202c3b..3aa152fc 100644 --- a/getgroups.c +++ b/getgroups.c @@ -43,7 +43,7 @@ main(UNUSED(int argc), UNUSED(char *argv[])) } for (i = 0; i < n; i++) - printf("%u ", list[i]); + printf("%lu ", (unsigned long)list[i]); printf("\n"); return 0; diff --git a/tls.c b/tls.c index 1903e1f7..5facf2e8 100644 --- a/tls.c +++ b/tls.c @@ -116,10 +116,9 @@ static void list_file (const char *fname) /* NB: need to pass size as a double because it might be be * too large for a long. */ - printf("%s %12.0f %6ld.%-6ld %6d %s %s%s\n", - permbuf, (double) buf.st_size, - (long) buf.st_uid, (long) buf.st_gid, - buf.st_nlink, + printf("%s %12.0f %6ld.%-6ld %6ld %s %s%s\n", + permbuf, (double)buf.st_size, (long)buf.st_uid, + (long)buf.st_gid, (long)buf.st_nlink, datebuf, fname, linkbuf); } -- 2.34.1