From c865aa9254ebe351d84d844f202984e4822c4030 Mon Sep 17 00:00:00 2001 From: Richard Nyberg Date: Fri, 10 Feb 2006 17:33:48 +0000 Subject: Use c99 types conservatively to compile on OpenBSD. Also convert to or from time_t via long. --- misc/metainfo.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'misc') diff --git a/misc/metainfo.c b/misc/metainfo.c index 04b1cfc..856db32 100644 --- a/misc/metainfo.c +++ b/misc/metainfo.c @@ -40,16 +40,16 @@ print_metainfo(struct metainfo *tp) printf("%.2x", tp->info_hash[i]); printf("\n"); printf("Tracker URL: %s\n", tp->announce); - printf("Piece length: %jd\n", (intmax_t)tp->piece_length); + printf("Piece length: %lld\n", (long long)tp->piece_length); printf("Number of pieces: %u\n", tp->npieces); printf("Number of files: %u\n", tp->nfiles); printf("Advisory name: %s\n", tp->name); printf("Files:\n"); for (i = 0; i < tp->nfiles; i++) { - printf("%s (%jd)\n", - tp->files[i].path, (intmax_t)tp->files[i].length); + printf("%s (%lld)\n", + tp->files[i].path, (long long)tp->files[i].length); } - printf("Total length: %jd\n\n", (intmax_t)tp->total_length); + printf("Total length: %lld\n\n", (long long)tp->total_length); } static int -- cgit 1.4.1