archive-tar.c: squelch a type mismatch warning
On some systems, giving a value of type time_t to printf "%lo" that expects an unsigned long would give a type mismatch warning. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Junio C Hamano committed
May 7, 2009 at 01:08 UTC
3e1629f5a6c832941cc329c381de8b88ea775cb6
1 file changed
+1
-1
archive-tar.c
+1
-1
@@ -180,7 +180,7 @@ static int write_tar_entry(struct archiver_args *args,
180
181
sprintf(header.mode, "%07o", mode & 07777);
182
sprintf(header.size, "%011lo", S_ISREG(mode) ? size : 0);
183
- sprintf(header.mtime, "%011lo", args->time);
183
+ sprintf(header.mtime, "%011lo", (unsigned long) args->time);
184
185
sprintf(header.uid, "%07o", 0);
186
sprintf(header.gid, "%07o", 0);