openbsd-ports/mbone/rat/patches/patch-src_main_c
2004-01-05 00:05:04 +00:00

18 lines
801 B
Plaintext

$OpenBSD: patch-src_main_c,v 1.1 2004/01/05 00:05:04 espie Exp $
--- src/main.c.orig 2004-01-05 01:02:01.000000000 +0100
+++ src/main.c 2004-01-05 01:02:22.000000000 +0100
@@ -98,11 +98,11 @@ main(int argc, char *argv[])
NEW_QUEUE(pckt_queue_struct, rtcp_pckt_queue)
NEW_QUEUE(rx_queue_struct, rx_unit_queue)
-#define INIT_QUEUE(T,Q) Q##_ptr[0] = &Q##[0]; \
+#define INIT_QUEUE(T,Q) Q##_ptr[0] = &Q[0]; \
Q##_ptr[0]->queue_empty_flag = 1; \
Q##_ptr[0]->head_ptr = NULL; \
Q##_ptr[0]->tail_ptr = NULL; \
- Q##_ptr[1] = &Q##[1]; \
+ Q##_ptr[1] = &Q[1]; \
Q##_ptr[1]->queue_empty_flag = 1; \
Q##_ptr[1]->head_ptr = NULL; \
Q##_ptr[1]->tail_ptr = NULL;