diff options
author | Robert Swiecki <robert@swiecki.net> | 2020-05-26 14:57:07 +0200 |
---|---|---|
committer | Robert Swiecki <robert@swiecki.net> | 2020-05-26 14:57:07 +0200 |
commit | a8cb02e3cea98fe054a24321c594402c9ab933fc (patch) | |
tree | 002932ff8f875cb1851576bafe615171bd89e6de | |
parent | 9bd1c1154d4eaa5fcef4cf8f4d40fcb31c4d168c (diff) | |
download | honggfuzz-a8cb02e3cea98fe054a24321c594402c9ab933fc.tar.gz |
make indent
-rw-r--r-- | libhfnetdriver/netdriver.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/libhfnetdriver/netdriver.c b/libhfnetdriver/netdriver.c index 5e6cc2be..b883d234 100644 --- a/libhfnetdriver/netdriver.c +++ b/libhfnetdriver/netdriver.c @@ -437,18 +437,17 @@ int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t len) { * pressure on the stack size */ #ifdef NORECVTIME - struct timeval timeout={1,0};//1s - setsockopt(sock,SOL_SOCKET,SO_RCVTIMEO,&timeout,sizeof(timeout)); - clock_t start,end; + struct timeval timeout = {1, 0}; // 1s + setsockopt(sock, SOL_SOCKET, SO_RCVTIMEO, &timeout, sizeof(timeout)); + clock_t start, end; start = clock(); -#endif +#endif static char b[1024ULL * 1024ULL * 4ULL]; - while (TEMP_FAILURE_RETRY(recv(sock, b, sizeof(b), MSG_WAITALL)) > 0){ + while (TEMP_FAILURE_RETRY(recv(sock, b, sizeof(b), MSG_WAITALL)) > 0) { #ifdef NORECVTIME - end= clock(); - if( ((double)end-start)/CLK_TCK>NORECVTIME) - break; -#endif + end = clock(); + if (((double)end - start) / CLK_TCK > NORECVTIME) break; +#endif } close(sock); |