summaryrefslogtreecommitdiffstats
path: root/lib/vio_fifo.c
diff options
context:
space:
mode:
authorChris Hall <chris.hall@highwayman.com>2011-03-29 19:47:32 +0100
committerChris Hall <chris.hall@highwayman.com>2011-03-29 19:47:32 +0100
commit9c99076cf33bfa874db34151e28822f0e392ab3a (patch)
treee1630b98e0bb01ad8b26c6a50a7824eb41f0c448 /lib/vio_fifo.c
parent7e666be965b3ac61b05ccdeca2b61902bc26e172 (diff)
downloadquagga-9c99076cf33bfa874db34151e28822f0e392ab3a.tar.bz2
quagga-9c99076cf33bfa874db34151e28822f0e392ab3a.tar.xz
Fix compile on older gcc, and other minor fixes.
Slightly older gcc would not tolerate an offsetof() where the type part contained a '->' -- replaced foo->bar by foo[0].bar, which is more readily tolerated. Fixed assert() in "--more--". Improved some shut-down code.
Diffstat (limited to 'lib/vio_fifo.c')
-rw-r--r--lib/vio_fifo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/vio_fifo.c b/lib/vio_fifo.c
index 65f19411..89e42add 100644
--- a/lib/vio_fifo.c
+++ b/lib/vio_fifo.c
@@ -442,11 +442,11 @@ vio_fifo_clear(vio_fifo vff, bool clear_marks)
lump = ddl_tail(vff->base) ;
- vio_fifo_release_upto(vff, lump) ;
-
- vff->get_lump = lump ;
+ vff->get_lump = lump ; /* before releasing */
vff->end_lump = lump ;
+ vio_fifo_release_upto(vff, lump) ;
+
vio_fifo_reset_ptrs(vff) ;
if (clear_marks)