diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2018-12-01 16:49:45 +0100 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2018-12-01 16:49:45 +0100 |
commit | 3e30070331b8a6f8173895a074d342c9ebf07a25 (patch) | |
tree | 886c0c61fcb7c6d81e681f3d7b7a0f14e62d9741 /isisd/isis_pdu.c | |
parent | Merge pull request #3405 from LabNConsulting/working/master/fix-vrf (diff) | |
download | frr-3e30070331b8a6f8173895a074d342c9ebf07a25.tar.xz frr-3e30070331b8a6f8173895a074d342c9ebf07a25.zip |
Revert "isisd lib ospfd pbrd python: fix empty init"
This reverts commit 48944eb65e1d1ced03d46121d923d9d613a480d5.
We're using GNU C, not ISO C - and this commit triggers new (real)
warnings about {0} instead of bogus ones about {}.
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'isisd/isis_pdu.c')
-rw-r--r-- | isisd/isis_pdu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/isisd/isis_pdu.c b/isisd/isis_pdu.c index 7df152f1f..2f18b98d3 100644 --- a/isisd/isis_pdu.c +++ b/isisd/isis_pdu.c @@ -747,7 +747,7 @@ static int process_lsp(uint8_t pdu_type, struct isis_circuit *circuit, stream_get_endp(circuit->rcv_stream)); } - struct isis_lsp_hdr hdr = {0}; + struct isis_lsp_hdr hdr = {}; hdr.pdu_len = stream_getw(circuit->rcv_stream); hdr.rem_lifetime = stream_getw(circuit->rcv_stream); @@ -1126,8 +1126,8 @@ static int process_snp(uint8_t pdu_type, struct isis_circuit *circuit, stream_get(rem_sys_id, circuit->rcv_stream, ISIS_SYS_ID_LEN); stream_forward_getp(circuit->rcv_stream, 1); /* Circuit ID - unused */ - uint8_t start_lsp_id[ISIS_SYS_ID_LEN + 2] = {0}; - uint8_t stop_lsp_id[ISIS_SYS_ID_LEN + 2] = {0}; + uint8_t start_lsp_id[ISIS_SYS_ID_LEN + 2] = {}; + uint8_t stop_lsp_id[ISIS_SYS_ID_LEN + 2] = {}; if (is_csnp) { stream_get(start_lsp_id, circuit->rcv_stream, |