comparison fuzz-wrapfd.c @ 1746:28ab2cdb84bf

Fix fuzzer build
author Matt Johnston <matt@ucc.asn.au>
date Sun, 18 Oct 2020 23:32:39 +0800
parents 6cf465af5d9f
children
comparison
equal deleted inserted replaced
1745:a6824c54962a 1746:28ab2cdb84bf
19 enum wrapfd_mode mode; 19 enum wrapfd_mode mode;
20 int closein; 20 int closein;
21 int closeout; 21 int closeout;
22 }; 22 };
23 23
24 static struct fdwrap wrap_fds[IOWRAP_MAXFD+1] = {0}; 24 static struct fdwrap wrap_fds[IOWRAP_MAXFD+1] = {{UNUSED, 0, 0}};
25 static int wrapfd_maxfd = -1; 25 static int wrapfd_maxfd = -1;
26 static unsigned short rand_state[3]; 26 static unsigned short rand_state[3];
27 static buffer *input_buf; 27 static buffer *input_buf;
28 static int devnull_fd = -1; 28 static int devnull_fd = -1;
29 29
86 } 86 }
87 } 87 }
88 88
89 int wrapfd_read(int fd, void *out, size_t count) { 89 int wrapfd_read(int fd, void *out, size_t count) {
90 size_t maxread; 90 size_t maxread;
91 buffer *buf;
92 91
93 if (!fuzz.wrapfds) { 92 if (!fuzz.wrapfds) {
94 return read(fd, out, count); 93 return read(fd, out, count);
95 } 94 }
96 95