From 5bb0a362e0fa4fcd82ab8c2b1490780699992218 Mon Sep 17 00:00:00 2001 From: dillon Date: Sun, 28 Oct 2001 02:42:26 +0000 Subject: [PATCH] Remove unnecessary casts in timeval.tv_sec load from st_*time --- bin/pax/file_subs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/pax/file_subs.c b/bin/pax/file_subs.c index a13238e47609..a65b43689b42 100644 --- a/bin/pax/file_subs.c +++ b/bin/pax/file_subs.c @@ -716,8 +716,8 @@ set_ftime(fnm, mtime, atime, frc) static struct timeval tv[2] = {{0L, 0L}, {0L, 0L}}; struct stat sb; - tv[0].tv_sec = (long)atime; - tv[1].tv_sec = (long)mtime; + tv[0].tv_sec = atime; + tv[1].tv_sec = mtime; if (!frc && (!patime || !pmtime)) { /* * if we are not forcing, only set those times the user wants @@ -725,9 +725,9 @@ set_ftime(fnm, mtime, atime, frc) */ if (lstat(fnm, &sb) == 0) { if (!patime) - tv[0].tv_sec = (long)sb.st_atime; + tv[0].tv_sec = sb.st_atime; if (!pmtime) - tv[1].tv_sec = (long)sb.st_mtime; + tv[1].tv_sec = sb.st_mtime; } else syswarn(0,errno,"Unable to obtain file stats %s", fnm); }