zebra: Fuzzing code has gotten a bit out of date

Update the fuzzing code to compile again.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2019-06-15 08:25:25 -04:00
parent ce746edebb
commit 96b43ab3ff
2 changed files with 1 additions and 2 deletions

View File

@ -23,6 +23,7 @@
#if defined(HANDLE_NETLINK_FUZZING) #if defined(HANDLE_NETLINK_FUZZING)
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include "libfrr.h"
#endif /* HANDLE_NETLINK_FUZZING */ #endif /* HANDLE_NETLINK_FUZZING */
#ifdef HAVE_NETLINK #ifdef HAVE_NETLINK

View File

@ -1067,10 +1067,8 @@ DEFUN (show_zebra_client_summary,
void zserv_read_file(char *input) void zserv_read_file(char *input)
{ {
int fd; int fd;
struct thread t;
fd = open(input, O_RDONLY | O_NONBLOCK); fd = open(input, O_RDONLY | O_NONBLOCK);
t.u.fd = fd;
zserv_client_create(fd); zserv_client_create(fd);
} }