summaryrefslogtreecommitdiff
path: root/scp.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2003-04-28 23:30:43 +0000
committerBen Lindstrom <mouring@eviladmin.org>2003-04-28 23:30:43 +0000
commit0e7f4363f3d7b2ae707709607fd816f663c7449a (patch)
tree25beca64df9bf49d1b2ccba7643ed6dbc170de92 /scp.c
parentf50ad1fd04fa23af4968f406c5993869f0aeee61 (diff)
- (bal) [defines.h progressmeter.c scp.c] Some more culling of non 64bit
hacked code.
Diffstat (limited to 'scp.c')
-rw-r--r--scp.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/scp.c b/scp.c
index 35d4c5f7..42ebec0f 100644
--- a/scp.c
+++ b/scp.c
@@ -554,16 +554,9 @@ syserr: run_err("%s: %s", name, strerror(errno));
goto next;
}
#define FILEMODEMASK (S_ISUID|S_ISGID|S_IRWXU|S_IRWXG|S_IRWXO)
-#ifdef HAVE_LONG_LONG_INT
snprintf(buf, sizeof buf, "C%04o %lld %s\n",
(u_int) (stb.st_mode & FILEMODEMASK),
- (long long)stb.st_size, last);
-#else
- /* XXX: Handle integer overflow? */
- snprintf(buf, sizeof buf, "C%04o %lu %s\n",
- (u_int) (stb.st_mode & FILEMODEMASK),
- (u_long) stb.st_size, last);
-#endif
+ (int64_t)stb.st_size, last);
if (verbose_mode) {
fprintf(stderr, "Sending file modes: %s", buf);
}