Partly reverted my last change. I had forgotten that off_t is a signed

data type.
This commit is contained in:
rillig 2005-08-20 16:17:36 +00:00
parent 866f37de4e
commit 9e7b9d2566

View File

@ -1,4 +1,4 @@
/* $NetBSD: style,v 1.34 2005/08/20 09:03:29 rillig Exp $ */
/* $NetBSD: style,v 1.35 2005/08/20 16:17:36 rillig Exp $ */
/*
* The revision control tag appears first, with a blank line after it.
@ -29,7 +29,7 @@
#include <sys/cdefs.h>
__COPYRIGHT("@(#) Copyright (c) 2000\n\
The NetBSD Foundation, inc. All rights reserved.\n");
__RCSID("$NetBSD: style,v 1.34 2005/08/20 09:03:29 rillig Exp $");
__RCSID("$NetBSD: style,v 1.35 2005/08/20 16:17:36 rillig Exp $");
/*
* VERY important single-line comments look like this.
@ -369,8 +369,7 @@ dirinfo(const char *p, struct stat *sb, struct dirent *de, struct statfs *sf,
* To printf 64 bit quantities, use %lld and cast to (long long)
* or use %llu and cast to (unsigned long long).
*/
(void)printf("The size of %s is %llu\n",
p, (unsigned long long)sb->st_size);
(void)printf("The size of %s is %lld\n", p, (long long)sb->st_size);
}
/*