summaryrefslogtreecommitdiff
path: root/bin/rcp
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-09-12 04:43:19 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-09-12 04:43:19 +0000
commit66837ca1bec49f43323a320a634fd7f19a9e0260 (patch)
tree95a3b2c9e71d1879efcf6891f48ae530e891ffe2 /bin/rcp
parentf77c59a9f45fbab8b6380b0de424d3706b03cff4 (diff)
-Wall
Diffstat (limited to 'bin/rcp')
-rw-r--r--bin/rcp/rcp.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/rcp/rcp.c b/bin/rcp/rcp.c
index 95c8a206c73..72b253f92e9 100644
--- a/bin/rcp/rcp.c
+++ b/bin/rcp/rcp.c
@@ -1,5 +1,5 @@
/* $NetBSD: rcp.c,v 1.9 1995/03/21 08:19:06 cgd Exp $ */
-/* $OpenBSD: rcp.c,v 1.15 1997/09/01 18:30:22 deraadt Exp $ */
+/* $OpenBSD: rcp.c,v 1.16 1997/09/12 04:43:18 millert Exp $ */
/*
* Copyright (c) 1983, 1990, 1992, 1993
@@ -429,7 +429,8 @@ 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.tv_sec, stb.st_atimespec.tv_sec);
+ (long)stb.st_mtimespec.tv_sec,
+ (long)stb.st_atimespec.tv_sec);
(void)write(rem, buf, strlen(buf));
if (response() < 0)
goto next;
@@ -493,7 +494,8 @@ rsource(name, statp)
last++;
if (pflag) {
(void)snprintf(path, sizeof(path), "T%ld 0 %ld 0\n",
- statp->st_mtimespec.tv_sec, statp->st_atimespec.tv_sec);
+ (long)statp->st_mtimespec.tv_sec,
+ (long)statp->st_atimespec.tv_sec);
(void)write(rem, path, strlen(path));
if (response() < 0) {
closedir(dirp);