diff options
author | dillon <dillon@FreeBSD.org> | 2001-10-28 02:42:26 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 2001-10-28 02:42:26 +0000 |
commit | 5bb0a362e0fa4fcd82ab8c2b1490780699992218 (patch) | |
tree | 026778062b4f4c4671157007f7bbf95ddd24ede5 /bin/pax | |
parent | 78601098af98095ccc3d3332ebd1067226d02ce7 (diff) | |
download | FreeBSD-src-5bb0a362e0fa4fcd82ab8c2b1490780699992218.zip FreeBSD-src-5bb0a362e0fa4fcd82ab8c2b1490780699992218.tar.gz |
Remove unnecessary casts in timeval.tv_sec load from st_*time
Diffstat (limited to 'bin/pax')
-rw-r--r-- | bin/pax/file_subs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/pax/file_subs.c b/bin/pax/file_subs.c index a13238e..a65b436 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); } |