diff options
author | mdf <mdf@FreeBSD.org> | 2012-09-27 23:31:12 +0000 |
---|---|---|
committer | mdf <mdf@FreeBSD.org> | 2012-09-27 23:31:12 +0000 |
commit | 8ce8b3ae17aae9323001285d2530d9b793f3c36d (patch) | |
tree | 15b8dbeeffb836f977561b1d67149f3e1b1870b9 /bin/rm/rm.c | |
parent | e76336791156e518c57a0aa274e1652774931971 (diff) | |
download | FreeBSD-src-8ce8b3ae17aae9323001285d2530d9b793f3c36d.zip FreeBSD-src-8ce8b3ae17aae9323001285d2530d9b793f3c36d.tar.gz |
Fix bin/ build with a 64-bit ino_t.
Original code by: Gleb Kurtsou
Diffstat (limited to 'bin/rm/rm.c')
-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 6575a8d..a450057 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) |