From f2d2a0561a32a13c548cb512809f2e3e1a1def9e Mon Sep 17 00:00:00 2001 From: bde Date: Sun, 2 Aug 1998 14:25:24 +0000 Subject: Fixed printf format errors (time_t is not necessarily long). --- bin/rcp/rcp.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'bin/rcp') 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 @@ -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); -- cgit v1.1