summaryrefslogtreecommitdiffstats
path: root/lib/zclient.c
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/zclient.c
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/zclient.c')
-rw-r--r--lib/zclient.c2
1 files changed, 1 insertions, 1 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;