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-04-01 13:10:07 +0200
commit42ee300e92c0d3f7bba6f4f015353bd5ff6839c5 (patch)
tree6c48ca2fe5d8d58c34f15b084e88682c90df7c18 /src/afl-showmap.c
parent582f5103d92dd8b7da1742c86d22f6b191743b6f (diff)
downloadafl++-42ee300e92c0d3f7bba6f4f015353bd5ff6839c5.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. */