Skip to content

Commit

Permalink
ping(8): remove macro switch
Browse files Browse the repository at this point in the history
  • Loading branch information
plusun committed Jul 18, 2018
1 parent e1920ca commit 5c11886
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions sbin/ping/fuzzer_ops.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#ifdef ENABLE_FUZZER

#include <string.h>
#include <stdio.h>
#include "fuzzer_ops.h"
#include "prog_ops.h"

Expand All @@ -14,11 +13,12 @@ struct {
};
fuffer_t f[2];

extern HF_ITER(uint8_t** buf, size_t* len);
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 @@ -212,5 +212,3 @@ int close(int s) {
fstate.fuffers[s].open = 0;
return 0;
}

#endif

0 comments on commit 5c11886

Please sign in to comment.