Commit 424d3691 authored by Wayne Davison's avatar Wayne Davison

Paul's patch to silence some 64-bit compiler warnings.

parent d0221f1d
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment