Explicitly cast the tag value in read_msg_fd() to an enum.
[rsync/rsync.git] / io.c
diff --git a/io.c b/io.c
index 0251176..fc2ec29 100644 (file)
--- a/io.c
+++ b/io.c
@@ -297,7 +297,7 @@ static void read_msg_fd(void)
                        if (n >= sizeof buf)
                                n = sizeof buf - 1;
                        read_loop(fd, buf, n);
-                       rwrite(tag, buf, n);
+                       rwrite((enum logcode)tag, buf, n);
                        len -= n;
                }
                break;