Skip to content

Commit

Permalink
ping(8): remove close and print message
Browse files Browse the repository at this point in the history
  • Loading branch information
plusun committed Jul 18, 2018
1 parent eeca866 commit 60c885d
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions sbin/ping/fuzzer_ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ extern void HF_ITER(uint8_t** buf, size_t* len);
int fuzzer_init(void) {
uint8_t *buf;
size_t len;
printf("hi!\n");
HF_ITER(&buf, &len);
fuzzer_init_fuffer(&f[0], buf, len);
fuzzer_init_fuffer(&f[1], NULL, 0);
Expand Down Expand Up @@ -203,12 +202,3 @@ ssize_t sendto(int s, const void *msg, size_t len, int flags,
return len;
}

int close(int s) {
if (!fstate.fuffers) {
fuzzer_init();
}
if ((s = fuzzer_sock_to_index(s)) < 0)
return -1;
fstate.fuffers[s].open = 0;
return 0;
}

0 comments on commit 60c885d

Please sign in to comment.