about summary refs log tree commit diff
path: root/src/afl-fuzz-init.c
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-09-18 09:02:43 +0200
committerhexcoder- <heiko@hexco.de>2020-09-18 09:02:43 +0200
commit9eed8fe58895fd4a20aa7b5f180b1bfaebf42cd7 (patch)
tree0db810b88feb7381058eae3eab13a72ddc4a4611 /src/afl-fuzz-init.c
parent5241d1221b7bccd7f63f872653e597f33948423a (diff)
downloadafl++-9eed8fe58895fd4a20aa7b5f180b1bfaebf42cd7.tar.gz
portability: type -> command -v, compiler warnings
Diffstat (limited to 'src/afl-fuzz-init.c')
-rw-r--r--src/afl-fuzz-init.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/afl-fuzz-init.c b/src/afl-fuzz-init.c
index 29c8c6fa..cbac3822 100644
--- a/src/afl-fuzz-init.c
+++ b/src/afl-fuzz-init.c
@@ -311,7 +311,7 @@ void bind_to_free_cpu(afl_state_t *afl) {
 
   }
 
-  for (i = 0; i < proccount; i++) {
+  for (i = 0; i < (s32)proccount; i++) {
 
     if (procs[i].p_cpuid < sizeof(cpu_used) && procs[i].p_pctcpu > 0)
       cpu_used[procs[i].p_cpuid] = 1;
@@ -2182,6 +2182,8 @@ void check_cpu_governor(afl_state_t *afl) {
        "drop.\n",
        min / 1024, max / 1024);
   FATAL("Suboptimal CPU scaling governor");
+#else
+  (void)afl;
 #endif
 
 }