summaryrefslogtreecommitdiffstats
path: root/lib/zebra.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2010-02-05 01:40:40 +0100
committerDavid Lamparter <equinox@diac24.net>2010-02-05 01:40:40 +0100
commitf06277c84f7604b380bdac491e23c848d4952d18 (patch)
tree41a46707f2780d48893140e42ca3988fc761242f /lib/zebra.h
parent447a9a8dbde95fc6ce92691491ac193f0199e2cd (diff)
parent590f04362a6dd546e868b5160a72443ce97547ca (diff)
downloadquagga-f06277c84f7604b380bdac491e23c848d4952d18.tar.bz2
quagga-f06277c84f7604b380bdac491e23c848d4952d18.tar.xz
Merge branch 'patches/smallones' into dn42
Diffstat (limited to 'lib/zebra.h')
-rw-r--r--lib/zebra.h39
1 files changed, 0 insertions, 39 deletions
diff --git a/lib/zebra.h b/lib/zebra.h
index 83f04294..757a3757 100644
--- a/lib/zebra.h
+++ b/lib/zebra.h
@@ -533,43 +533,4 @@ typedef u_int8_t safi_t;
typedef u_int16_t zebra_size_t;
typedef u_int16_t zebra_command_t;
-/* FIFO -- first in first out structure and macros. */
-struct fifo
-{
- struct fifo *next;
- struct fifo *prev;
-};
-
-#define FIFO_INIT(F) \
- do { \
- struct fifo *Xfifo = (struct fifo *)(F); \
- Xfifo->next = Xfifo->prev = Xfifo; \
- } while (0)
-
-#define FIFO_ADD(F,N) \
- do { \
- struct fifo *Xfifo = (struct fifo *)(F); \
- struct fifo *Xnode = (struct fifo *)(N); \
- Xnode->next = Xfifo; \
- Xnode->prev = Xfifo->prev; \
- Xfifo->prev = Xfifo->prev->next = Xnode; \
- } while (0)
-
-#define FIFO_DEL(N) \
- do { \
- struct fifo *Xnode = (struct fifo *)(N); \
- Xnode->prev->next = Xnode->next; \
- Xnode->next->prev = Xnode->prev; \
- } while (0)
-
-#define FIFO_HEAD(F) \
- ((((struct fifo *)(F))->next == (struct fifo *)(F)) \
- ? NULL : (F)->next)
-
-#define FIFO_EMPTY(F) \
- (((struct fifo *)(F))->next == (struct fifo *)(F))
-
-#define FIFO_TOP(F) \
- (FIFO_EMPTY(F) ? NULL : ((struct fifo *)(F))->next)
-
#endif /* _ZEBRA_H */