summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-05-27 01:52:10 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-05-27 01:52:10 +0200
commite7a2870b4731c1e57f6fe1789d29e5104da448c2 (patch)
treed5da9da1604003c59ed39b5dc8692e95c12a5eb3 /lib
parentdebian: Add pimd to logrotate script (diff)
downloadfrr-e7a2870b4731c1e57f6fe1789d29e5104da448c2.tar.xz
frr-e7a2870b4731c1e57f6fe1789d29e5104da448c2.zip
lib: Fix vrf_id_t data type
We were reading a u_int16_t for vrf_id_t. While technically the same thing, I'd like to make sure we think about vrf_id_t's as vrf_id_t's. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/zclient.c2
-rw-r--r--lib/zclient.h2
2 files changed, 2 insertions, 2 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);