Skip to content

Commit c0ed118

Browse files
committed
comment
1 parent 4a54328 commit c0ed118

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

include/common.h

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,7 @@ u8 *u_stringify_mem_size(u8 *buf, u64 val);
107107

108108
u8 *u_stringify_time_diff(u8 *buf, u64 cur_ms, u64 event_ms);
109109

110-
/* Wrapper for select() and read(), reading exactly len bytes.
111-
Returns the time passed to read.
112-
stop_soon should point to a variable indicating ctrl+c was pressed.
113-
If the wait times out, returns timeout_ms + 1;
114-
Returns 0 if an error occurred (fd closed, signal, ...); */
115-
u32 read_timed(s32 fd, void *buf, size_t len, u32 timeout_ms,
116-
volatile u8 *stop_soon_p);
117-
110+
/* Reads the map size from ENV */
118111
u32 get_map_size(void);
119112

120113
#endif

src/afl-forkserver.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,9 @@ void afl_fsrv_start(afl_forkserver_t *fsrv, char **argv,
454454
rlen = 0;
455455
if (fsrv->exec_tmout) {
456456

457-
u32 time_ms = read_s32_timed(fsrv->fsrv_st_fd, &status,
458-
fsrv->exec_tmout * FORK_WAIT_MULT, stop_soon_p);
457+
u32 time_ms =
458+
read_s32_timed(fsrv->fsrv_st_fd, &status,
459+
fsrv->exec_tmout * FORK_WAIT_MULT, stop_soon_p);
459460

460461
if (!time_ms) {
461462

0 commit comments

Comments
 (0)