The printf type checking in gcc wants %qd to be a long long, so add
a cast in case off_t is not a long long (as on alpha).
This commit is contained in:
parent
84cc0c31af
commit
ef1c4c53f4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=35998
@ -36,7 +36,7 @@
|
||||
static char sccsid[] = "@(#)displayq.c 8.4 (Berkeley) 4/28/95";
|
||||
*/
|
||||
static const char rcsid[] =
|
||||
"$Id$";
|
||||
"$Id: displayq.c,v 1.13 1997/12/02 20:45:19 wollman Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -447,7 +447,7 @@ ldump(nfile, file, copies)
|
||||
else
|
||||
printf("%-32s", nfile);
|
||||
if (*file && !stat(file, &lbuf))
|
||||
printf(" %qd bytes", lbuf.st_size);
|
||||
printf(" %qd bytes", (long long) lbuf.st_size);
|
||||
else
|
||||
printf(" ??? bytes");
|
||||
putchar('\n');
|
||||
|
Loading…
Reference in New Issue
Block a user