diff options
author | Matthew D Fleming <mdf@FreeBSD.org> | 2012-09-27 23:31:12 +0000 |
---|---|---|
committer | Matthew D Fleming <mdf@FreeBSD.org> | 2012-09-27 23:31:12 +0000 |
commit | 6db1a7f11e0f890229ef43a9e554b89756afa8c5 (patch) | |
tree | 15b8dbeeffb836f977561b1d67149f3e1b1870b9 /bin/rm | |
parent | e25a029eb2496de2e47cd3a936ad4c24bf0043ba (diff) | |
download | src-test2-6db1a7f11e0f890229ef43a9e554b89756afa8c5.tar.gz src-test2-6db1a7f11e0f890229ef43a9e554b89756afa8c5.zip |
Fix bin/ build with a 64-bit ino_t.
Original code by: Gleb Kurtsou
Notes
Notes:
svn path=/head/; revision=241014
Diffstat (limited to 'bin/rm')
-rw-r--r-- | bin/rm/rm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/rm/rm.c b/bin/rm/rm.c index 6575a8de891e..a45005739de1 100644 --- a/bin/rm/rm.c +++ b/bin/rm/rm.c @@ -51,6 +51,7 @@ __FBSDID("$FreeBSD$"); #include <fts.h> #include <grp.h> #include <pwd.h> +#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -429,8 +430,8 @@ rm_overwrite(char *file, struct stat *sbp) if (!S_ISREG(sbp->st_mode)) return (1); if (sbp->st_nlink > 1 && !fflag) { - warnx("%s (inode %u): not overwritten due to multiple links", - file, sbp->st_ino); + warnx("%s (inode %ju): not overwritten due to multiple links", + file, (uintmax_t)sbp->st_ino); return (0); } if ((fd = open(file, O_WRONLY|O_NONBLOCK|O_NOFOLLOW, 0)) == -1) |