about summary refs log tree commit diff
path: root/src/afl-showmap.c
diff options
context:
space:
mode:
authorDominik Maier <domenukk@gmail.com>2020-03-31 03:22:46 +0200
committerDominik Maier <domenukk@gmail.com>2020-03-31 03:22:46 +0200
commit9b63fc758e9a296eabaa2f452f2d72e204db1240 (patch)
tree6c48ca2fe5d8d58c34f15b084e88682c90df7c18 /src/afl-showmap.c
parentd3130ace303a5bb20714f0de933e7eb3204c38fe (diff)
downloadafl++-9b63fc758e9a296eabaa2f452f2d72e204db1240.tar.gz
dropped make switches
Diffstat (limited to 'src/afl-showmap.c')
-rw-r--r--src/afl-showmap.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/afl-showmap.c b/src/afl-showmap.c
index caacefe4..eaab5c31 100644
--- a/src/afl-showmap.c
+++ b/src/afl-showmap.c
@@ -224,26 +224,6 @@ static u32 write_results(afl_forkserver_t *fsrv) {
 
 }
 
-/* Write output file. */
-
-static s32 write_to_file(u8 *path, u8 *mem, u32 len) {
-
-  s32 ret;
-
-  unlink(path);                                            /* Ignore errors */
-
-  ret = open(path, O_RDWR | O_CREAT | O_EXCL, 0600);
-
-  if (ret < 0) PFATAL("Unable to create '%s'", path);
-
-  ck_write(ret, mem, len, path);
-
-  lseek(ret, 0, SEEK_SET);
-
-  return ret;
-
-}
-
 /* Write modified data to file for testing. If use_stdin is clear, the old file
    is unlinked and a new one is created. Otherwise, out_fd is rewound and
    truncated. */