summaryrefslogtreecommitdiffstats
path: root/bin/rcp/rcp.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-08-02 14:25:24 +0000
committerbde <bde@FreeBSD.org>1998-08-02 14:25:24 +0000
commitf2d2a0561a32a13c548cb512809f2e3e1a1def9e (patch)
tree8d4eabef504fc4c58cd0a2f3816e09b08d990b32 /bin/rcp/rcp.c
parent06571cef5a763a11ee8b62f35459cd9bbb6e0a35 (diff)
downloadFreeBSD-src-f2d2a0561a32a13c548cb512809f2e3e1a1def9e.zip
FreeBSD-src-f2d2a0561a32a13c548cb512809f2e3e1a1def9e.tar.gz
Fixed printf format errors (time_t is not necessarily long).
Diffstat (limited to 'bin/rcp/rcp.c')
-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 c8c662b..9af02d8 100644
--- a/bin/rcp/rcp.c
+++ b/bin/rcp/rcp.c
@@ -42,7 +42,7 @@ static char const copyright[] =
static char sccsid[] = "@(#)rcp.c 8.2 (Berkeley) 4/2/94";
#endif
static const char rcsid[] =
- "$Id$";
+ "$Id: rcp.c,v 1.19 1998/05/18 06:36:03 charnier Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -455,7 +455,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;
@@ -519,7 +520,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);
OpenPOWER on IntegriCloud