From 03edc41d517d8fcdb5d913a0b13d81798d555f52 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Sun, 2 Jun 2019 16:05:01 -0400 Subject: [PATCH] lib: Move zebra_size_t to zclient.h who should own it 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 --- lib/zclient.h | 3 +++ lib/zebra.h | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/zclient.h b/lib/zclient.h index c707f498c4..d651738687 100644 --- a/lib/zclient.h +++ b/lib/zclient.h @@ -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. diff --git a/lib/zebra.h b/lib/zebra.h index 303b511bad..2f9ada09be 100644 --- a/lib/zebra.h +++ b/lib/zebra.h @@ -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; -- 2.39.5