diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2013-08-05 07:17:46 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2013-08-05 07:17:46 +0000 |
commit | 928792f83c39ac875b11ff92001132b9c3dfe83b (patch) | |
tree | 2ac3ab8a7700acf4a30e2535d9afce1070a5fbd7 /regress/sys/ffs | |
parent | b6009e29c10e8a875fa8d5f8c0f00fe50b3ffda8 (diff) |
ino_t is unsigned
Diffstat (limited to 'regress/sys/ffs')
-rw-r--r-- | regress/sys/ffs/fstest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/sys/ffs/fstest.c b/regress/sys/ffs/fstest.c index 50a22498b12..acdc9fc8f3a 100644 --- a/regress/sys/ffs/fstest.c +++ b/regress/sys/ffs/fstest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fstest.c,v 1.2 2007/04/14 17:18:28 thib Exp $ */ +/* $OpenBSD: fstest.c,v 1.3 2013/08/05 07:17:45 guenther Exp $ */ /* * Copyright (c) 2006-2007 Pawel Jakub Dawidek <pjd@FreeBSD.org> @@ -204,7 +204,7 @@ show_stat(struct stat *sp, const char *what) if (strcmp(what, "mode") == 0) printf("0%o", (unsigned int)(sp->st_mode & ALLPERMS)); else if (strcmp(what, "inode") == 0) - printf("%lld", (long long)sp->st_ino); + printf("%llu", (unsigned long long)sp->st_ino); else if (strcmp(what, "nlink") == 0) printf("%lld", (long long)sp->st_nlink); else if (strcmp(what, "uid") == 0) |