mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-17 12:18:08 +00:00
code cleanups (shadowed vars, (un)signed type mismatches, format types, etc.)
This commit is contained in:
@ -662,7 +662,7 @@ static void usage(u8 *argv0) {
|
||||
|
||||
"Execution control settings:\n"
|
||||
" -t msec - timeout for each run (none)\n"
|
||||
" -m megs - memory limit for child process (%d MB)\n"
|
||||
" -m megs - memory limit for child process (%u MB)\n"
|
||||
" -Q - use binary-only instrumentation (QEMU mode)\n"
|
||||
" -U - use Unicorn-based instrumentation (Unicorn mode)\n"
|
||||
" -W - use qemu-based instrumentation with Wine (Wine mode)\n"
|
||||
@ -1014,7 +1014,7 @@ int main(int argc, char **argv_orig, char **envp) {
|
||||
|
||||
DIR * dir_in, *dir_out = NULL;
|
||||
struct dirent *dir_ent;
|
||||
int done = 0;
|
||||
// int done = 0;
|
||||
u8 infile[PATH_MAX], outfile[PATH_MAX];
|
||||
u8 wait_for_gdb = 0;
|
||||
#if !defined(DT_REG)
|
||||
@ -1090,11 +1090,11 @@ int main(int argc, char **argv_orig, char **envp) {
|
||||
|
||||
if (get_afl_env("AFL_DEBUG")) {
|
||||
|
||||
int i = optind;
|
||||
int j = optind;
|
||||
DEBUGF("%s:", fsrv->target_path);
|
||||
while (argv[i] != NULL) {
|
||||
while (argv[j] != NULL) {
|
||||
|
||||
SAYF(" \"%s\"", argv[i++]);
|
||||
SAYF(" \"%s\"", argv[j++]);
|
||||
|
||||
}
|
||||
|
||||
@ -1143,7 +1143,7 @@ int main(int argc, char **argv_orig, char **envp) {
|
||||
if (fsrv->support_shmem_fuzz && !fsrv->use_shmem_fuzz)
|
||||
shm_fuzz = deinit_shmem(fsrv, shm_fuzz);
|
||||
|
||||
while (done == 0 && (dir_ent = readdir(dir_in))) {
|
||||
while ((dir_ent = readdir(dir_in))) {
|
||||
|
||||
if (dir_ent->d_name[0] == '.') {
|
||||
|
||||
|
Reference in New Issue
Block a user