diff options
-rw-r--r-- | lib/zclient.c | 2 | ||||
-rw-r--r-- | lib/zclient.h | 2 | ||||
-rw-r--r-- | pimd/pim_zlookup.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/zclient.c b/lib/zclient.c index 850639f32..9f426f1ca 100644 --- a/lib/zclient.c +++ b/lib/zclient.c @@ -336,7 +336,7 @@ zclient_create_header (struct stream *s, uint16_t command, vrf_id_t vrf_id) int zclient_read_header (struct stream *s, int sock, u_int16_t *size, u_char *marker, - u_char *version, u_int16_t *vrf_id, u_int16_t *cmd) + u_char *version, vrf_id_t *vrf_id, u_int16_t *cmd) { if (stream_read (s, sock, ZEBRA_HEADER_SIZE) != ZEBRA_HEADER_SIZE) return -1; diff --git a/lib/zclient.h b/lib/zclient.h index 0940e23a2..6bb172596 100644 --- a/lib/zclient.h +++ b/lib/zclient.h @@ -198,7 +198,7 @@ extern int zclient_send_message(struct zclient *); extern void zclient_create_header (struct stream *, uint16_t, vrf_id_t); extern int zclient_read_header (struct stream *s, int sock, u_int16_t *size, u_char *marker, u_char *version, - u_int16_t *vrf_id, u_int16_t *cmd); + vrf_id_t *vrf_id, u_int16_t *cmd); extern struct interface *zebra_interface_add_read (struct stream *, vrf_id_t); extern struct interface *zebra_interface_state_read (struct stream *s, vrf_id_t); diff --git a/pimd/pim_zlookup.c b/pimd/pim_zlookup.c index 0ca3da20a..bec625ab5 100644 --- a/pimd/pim_zlookup.c +++ b/pimd/pim_zlookup.c @@ -153,7 +153,7 @@ static int zclient_read_nexthop(struct zclient *zlookup, uint16_t length; u_char marker; u_char version; - uint16_t vrf_id; + vrf_id_t vrf_id; uint16_t command; struct in_addr raddr; uint8_t distance; @@ -173,7 +173,7 @@ static int zclient_read_nexthop(struct zclient *zlookup, stream_reset(s); err = zclient_read_header (s, zlookup->sock, &length, &marker, &version, - &vrf_id, &command); + &vrf_id, &command); if (err < 0) { zlog_err("%s %s: zclient_read_header() failed", __FILE__, __PRETTY_FUNCTION__); |