summaryrefslogtreecommitdiff
path: root/bin/rcp
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1996-03-02 00:35:18 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1996-03-02 00:35:18 +0000
commitefa74046d0bd95be1322c9deb3f963a0fe069732 (patch)
treeded0c9df4e182a09fa803e3319753dedc7193b30 /bin/rcp
parenta0778ee0f43c1d7a24f307780b76228a7603a1f9 (diff)
timespec members are now named tv_{,u}sec again
Diffstat (limited to 'bin/rcp')
-rw-r--r--bin/rcp/rcp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/rcp/rcp.c b/bin/rcp/rcp.c
index e340f432ad2..4223da3fd80 100644
--- a/bin/rcp/rcp.c
+++ b/bin/rcp/rcp.c
@@ -1,4 +1,5 @@
/* $NetBSD: rcp.c,v 1.9 1995/03/21 08:19:06 cgd Exp $ */
+/* $OpenBSD: rcp.c,v 1.4 1996/03/02 00:35:17 tholo Exp $ */
/*
* Copyright (c) 1983, 1990, 1992, 1993
@@ -421,7 +422,7 @@ syserr: run_err("%s: %s", name, strerror(errno));
* versions expecting microseconds.
*/
(void)snprintf(buf, sizeof(buf), "T%ld 0 %ld 0\n",
- stb.st_mtimespec.ts_sec, stb.st_atimespec.ts_sec);
+ stb.st_mtimespec.tv_sec, stb.st_atimespec.tv_sec);
(void)write(rem, buf, strlen(buf));
if (response() < 0)
goto next;
@@ -485,7 +486,7 @@ rsource(name, statp)
last++;
if (pflag) {
(void)snprintf(path, sizeof(path), "T%ld 0 %ld 0\n",
- statp->st_mtimespec.ts_sec, statp->st_atimespec.ts_sec);
+ statp->st_mtimespec.tv_sec, statp->st_atimespec.tv_sec);
(void)write(rem, path, strlen(path));
if (response() < 0) {
closedir(dirp);