From 424d369179a2e89948609fa793210c49c16939a8 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Tue, 23 Jan 2007 15:24:36 +0000 Subject: [PATCH] Paul's patch to silence some 64-bit compiler warnings. --- flist.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/flist.c b/flist.c index db1cd901..943e69d0 100644 --- a/flist.c +++ b/flist.c @@ -418,9 +418,9 @@ static void send_file_entry(int f, struct file_struct *file, int ndx) if (tmp_dev != 0) { if (protocol_version >= 30) { struct idev_node *np = idev_node(tmp_dev, tmp_ino); - first_hlink_ndx = (int32)np->data - 1; + first_hlink_ndx = (int32)(long)np->data - 1; if (first_hlink_ndx < 0) { - np->data = (void*)(ndx + 1); + np->data = (void*)(long)(ndx + 1); flags |= XMIT_HLINK_FIRST; } flags |= XMIT_HLINKED; @@ -828,10 +828,10 @@ static struct file_struct *recv_file_entry(struct file_list *flist, ino = read_longint(f); } np = idev_node(dev, ino); - ndx = (int32)np->data - 1; + ndx = (int32)(long)np->data - 1; if (ndx < 0) { ndx = cnt++; - np->data = (void*)cnt; + np->data = (void*)(long)cnt; } F_HL_GNUM(file) = ndx; } -- 2.34.1