aboutsummaryrefslogtreecommitdiff
path: root/src/afl-showmap.c
diff options
context:
space:
mode:
authorAndrea Fioraldi <andreafioraldi@gmail.com>2019-09-18 10:23:36 +0200
committerAndrea Fioraldi <andreafioraldi@gmail.com>2019-09-18 10:23:36 +0200
commit74a984d75f59358d07c8816e4a1329108ca1fd41 (patch)
tree093f6ce31f95d149435cd32fc9cbdda97ce00613 /src/afl-showmap.c
parentb55ea6409dfcadf3c43244fb8e72ea660fd4fcc2 (diff)
downloadafl++-74a984d75f59358d07c8816e4a1329108ca1fd41.tar.gz
code format
Diffstat (limited to 'src/afl-showmap.c')
-rw-r--r--src/afl-showmap.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/afl-showmap.c b/src/afl-showmap.c
index 0720a234..31f12856 100644
--- a/src/afl-showmap.c
+++ b/src/afl-showmap.c
@@ -498,8 +498,9 @@ static void find_binary(u8* fname) {
int main(int argc, char** argv) {
s32 opt;
- u8 mem_limit_given = 0, timeout_given = 0, qemu_mode = 0, unicorn_mode = 0, use_wine = 0;
- u32 tcnt = 0;
+ u8 mem_limit_given = 0, timeout_given = 0, qemu_mode = 0, unicorn_mode = 0,
+ use_wine = 0;
+ u32 tcnt = 0;
char** use_argv;
doc_path = access(DOC_PATH, F_OK) ? "docs" : DOC_PATH;
@@ -612,7 +613,7 @@ int main(int argc, char** argv) {
unicorn_mode = 1;
break;
- case 'W': /* Wine+QEMU mode */
+ case 'W': /* Wine+QEMU mode */
if (use_wine) FATAL("Multiple -W options not supported");
qemu_mode = 1;
@@ -671,13 +672,14 @@ int main(int argc, char** argv) {
detect_file_args(argv + optind, at_file);
if (qemu_mode) {
-
+
if (use_wine)
use_argv = get_wine_argv(argv[0], argv + optind, argc - optind);
else
use_argv = get_qemu_argv(argv[0], argv + optind, argc - optind);
-
+
} else
+
use_argv = argv + optind;
run_target(use_argv);