comparison fuzz-wrapfd.h @ 1575:e75dab5bec71

some linting after fuzz merge (#60) * fix prototype * remove extra comma * use m_free after m_strdup
author François Perrad <francois.perrad@gadz.org>
date Sat, 03 Mar 2018 04:06:45 +0100
parents d4cc85e6c569
children dfbe947bdf0d
comparison
equal deleted inserted replaced
1572:56ec2214144f 1575:e75dab5bec71
5 5
6 enum wrapfd_mode { 6 enum wrapfd_mode {
7 UNUSED = 0, 7 UNUSED = 0,
8 PLAIN, 8 PLAIN,
9 INPROGRESS, 9 INPROGRESS,
10 RANDOMIN, 10 RANDOMIN
11 }; 11 };
12 12
13 void wrapfd_setup(); 13 void wrapfd_setup(void);
14 void wrapfd_setseed(uint32_t seed); 14 void wrapfd_setseed(uint32_t seed);
15 // doesn't take ownership of buf. buf is optional. 15 // doesn't take ownership of buf. buf is optional.
16 void wrapfd_add(int fd, buffer *buf, enum wrapfd_mode mode); 16 void wrapfd_add(int fd, buffer *buf, enum wrapfd_mode mode);
17 17
18 // called via #defines for read/write/select 18 // called via #defines for read/write/select