]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - vss.c
Recognize the eof packet also in the udp receiver.
[paraslash.git] / vss.c
diff --git a/vss.c b/vss.c
index dc5989365120855ace93a38b9502c82947807411..481c0b68e19fb342489736c3f2c36d6e92eb9b1c 100644 (file)
--- a/vss.c
+++ b/vss.c
@@ -304,11 +304,7 @@ static int compute_next_fec_slice(struct fec_client *fc, struct vss_task *vsst)
  */
 size_t vss_get_fec_eof_packet(const char **buf)
 {
-       static const char fec_eof_packet[FEC_HEADER_SIZE] =
-       "\xec\x0d\xcc\xfe\0\0\0\0"
-       "\0\0\0\0\0\0\0\0"
-       "\0\0\0\0\0\0\0\0"
-       "\0\0\0\0\0\0\0\0";
+       static const char fec_eof_packet[FEC_HEADER_SIZE] = FEC_EOF_PACKET;
        *buf = fec_eof_packet;
        return FEC_HEADER_SIZE;
 }
@@ -771,7 +767,7 @@ static void vss_send(struct vss_task *vsst)
                        continue;
                if (!compute_next_fec_slice(fc, vsst))
                        continue;
-               PARA_DEBUG_LOG("sending %d:%d (%zu bytes)\n", fc->group.num,
+               PARA_DEBUG_LOG("sending %d:%d (%u bytes)\n", fc->group.num,
                        fc->slice.num, fc->slice.bytes);
                fc->fcp->send((char *)fc->enc_buf,
                        fc->slice.bytes + FEC_HEADER_SIZE,