From: Nate Sammons Date: Tue, 6 Apr 1999 01:37:51 +0000 (+0000) Subject: Avoid compiler warnings. X-Git-Tag: v4.5.18~1223 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5c74d204e7641a072eec3a9d1ec537d100b83ddc;p=strace Avoid compiler warnings. --- diff --git a/file.c b/file.c index b25cab73..df6c5511 100644 --- a/file.c +++ b/file.c @@ -707,11 +707,14 @@ long addr; #else /* !ALPHA */ tprintf("{f_type=%s, f_bsize=%lu, f_blocks=%lu, f_bfree=%lu, ", sprintfstype(statbuf.f_type), - statbuf.f_bsize, statbuf.f_blocks, statbuf.f_bfree); + (unsigned long)statbuf.f_bsize, + (unsigned long)statbuf.f_blocks, + (unsigned long)statbuf.f_bfree); tprintf("f_files=%lu, f_ffree=%lu", - statbuf.f_files, statbuf.f_ffree); + (unsigned long)statbuf.f_files, + (unsigned long)statbuf.f_ffree); #ifdef LINUX - tprintf(", f_namelen=%lu}", statbuf.f_namelen); + tprintf(", f_namelen=%lu}", (unsigned long)statbuf.f_namelen); #endif /* LINUX */ #endif /* !ALPHA */ tprintf("}");