dim f3c5cded78 Fix the following -Werror warning from clang 3.5.0, while building
usr.bin/cpio on amd64 (or any arch with 64-bit time_t):

contrib/libarchive/cpio/cpio.c:1143:6: error: absolute value function 'abs' given an argument of type 'long' but has parameter of type 'int' which may cause truncation of value [-Werror,-Wabsolute-value]
        if (abs(mtime - now) > (365/2)*86400)
            ^
contrib/libarchive/cpio/cpio.c:1143:6: note: use function 'labs' instead
        if (abs(mtime - now) > (365/2)*86400)
            ^~~
            labs
1 error generated.

This is because time_t is a long on amd64. To avoid the warning, just
copy the equivalent test from a few lines before, which is used in the
Windows case, and which is type safe.

Reviewed by:	emaste
MFC after:	3 days
Differential Revision: https://reviews.freebsd.org/D1198
2014-11-22 12:10:09 +00:00
..
2014-11-01 11:17:54 +00:00
2014-07-08 22:27:50 +00:00
2014-10-26 09:29:12 +00:00
2014-09-08 19:26:21 +00:00
2014-11-18 18:03:40 +00:00
2014-09-14 09:26:33 +00:00
2014-11-05 20:13:18 +00:00
2014-08-11 19:41:01 +00:00
2014-08-12 02:09:00 +00:00
2014-08-11 19:41:01 +00:00
2014-11-11 04:06:05 +00:00
2014-05-02 23:47:14 +00:00
2014-11-16 01:00:39 +00:00
2014-10-23 00:40:56 +00:00