]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: Move zebra_size_t to zclient.h who should own it 4444/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Sun, 2 Jun 2019 20:05:01 +0000 (16:05 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Sun, 2 Jun 2019 20:07:48 +0000 (16:07 -0400)
The zebra_size_t type needs to be owned by zclient.h since
it is part of the zapi protocol.  Move it to where the
structure belongs.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/zclient.h
lib/zebra.h

index c707f498c4b01b0c27b2a86ea9d324f3640e9167..d651738687cea819b656453f531d665acd684365 100644 (file)
@@ -38,6 +38,9 @@
 
 #include "mlag.h"
 
+/* Zebra types. Used in Zserv message header. */
+typedef uint16_t zebra_size_t;
+
 /* Marker value used in new Zserv, in the byte location corresponding
  * the command value in the old zserv header. To allow old and new
  * Zserv headers to be distinguished from each other.
index 303b511bad8bdfa50dce0d34a34d2d3e50c3b1fa..2f9ada09beb7c5665fedc7a5afc37cdf1e2a494c 100644 (file)
@@ -432,9 +432,6 @@ typedef enum {
 #define RESET_FLAG_ATOMIC(PV)                                                  \
        ((atomic_store_explicit(PV, 0, memory_order_seq_cst)))
 
-/* Zebra types. Used in Zserv message header. */
-typedef uint16_t zebra_size_t;
-
 /* VRF ID type. */
 typedef uint32_t vrf_id_t;