summaryrefslogtreecommitdiffstats
path: root/bin/rcp
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2010-03-28 13:16:08 +0000
committered <ed@FreeBSD.org>2010-03-28 13:16:08 +0000
commit543b5e901b744468356547ee61975d9d44fa8f32 (patch)
tree5c6d55680c37f3cbfd9460fbab60d39b1ecb8ae7 /bin/rcp
parent4f08ecd7ed8b39a0e0cd094967835fa85d105793 (diff)
downloadFreeBSD-src-543b5e901b744468356547ee61975d9d44fa8f32.zip
FreeBSD-src-543b5e901b744468356547ee61975d9d44fa8f32.tar.gz
Change all our own code to use st_*tim instead of st_*timespec.
Also remove some local patches to diff(1) which are now unneeded.
Diffstat (limited to 'bin/rcp')
-rw-r--r--bin/rcp/rcp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/rcp/rcp.c b/bin/rcp/rcp.c
index 0a9b7ba..2c27b63 100644
--- a/bin/rcp/rcp.c
+++ b/bin/rcp/rcp.c
@@ -390,8 +390,8 @@ syserr: run_err("%s: %s", name, strerror(errno));
* versions expecting microseconds.
*/
(void)snprintf(buf, sizeof(buf), "T%ld 0 %ld 0\n",
- (long)stb.st_mtimespec.tv_sec,
- (long)stb.st_atimespec.tv_sec);
+ (long)stb.st_mtim.tv_sec,
+ (long)stb.st_atim.tv_sec);
(void)write(rem, buf, strlen(buf));
if (response() < 0)
goto next;
@@ -454,8 +454,8 @@ rsource(char *name, struct stat *statp)
last++;
if (pflag) {
(void)snprintf(path, sizeof(path), "T%ld 0 %ld 0\n",
- (long)statp->st_mtimespec.tv_sec,
- (long)statp->st_atimespec.tv_sec);
+ (long)statp->st_mtim.tv_sec,
+ (long)statp->st_atim.tv_sec);
(void)write(rem, path, strlen(path));
if (response() < 0) {
closedir(dirp);
OpenPOWER on IntegriCloud