about summary refs log tree commit diff
path: root/src/afl-ld-lto.c
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2021-01-04 20:40:53 +0100
committerhexcoder- <heiko@hexco.de>2021-01-04 20:40:53 +0100
commitc6e038fe25789caa8da777f53154de1bd7b4e178 (patch)
treefecec5ac4c36814b66ef284a887c627ca11ca0c0 /src/afl-ld-lto.c
parent5c224726169e421e95ec7f926f7808ff78cb05df (diff)
downloadafl++-c6e038fe25789caa8da777f53154de1bd7b4e178.tar.gz
code cleanups (shadowed vars, (un)signed type mismatches, format types, etc.)
Diffstat (limited to 'src/afl-ld-lto.c')
-rw-r--r--src/afl-ld-lto.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/afl-ld-lto.c b/src/afl-ld-lto.c
index fccdb1a5..1d54fda0 100644
--- a/src/afl-ld-lto.c
+++ b/src/afl-ld-lto.c
@@ -187,7 +187,7 @@ static void edit_params(int argc, char **argv) {
 
   if (debug)
     DEBUGF(
-        "passthrough=%s instrim=%d, gold_pos=%d, gold_present=%s "
+        "passthrough=%s instrim=%u, gold_pos=%u, gold_present=%s "
         "inst_present=%s rt_present=%s rt_lto_present=%s\n",
         passthrough ? "true" : "false", instrim, gold_pos,
         gold_present ? "true" : "false", inst_present ? "true" : "false",
@@ -253,10 +253,10 @@ static void edit_params(int argc, char **argv) {
 int main(int argc, char **argv) {
 
   s32  pid, i, status;
-  u8 * ptr;
+//  u8 * ptr;
   char thecwd[PATH_MAX];
 
-  if ((ptr = getenv("AFL_LD_CALLER")) != NULL) {
+  if (getenv("AFL_LD_CALLER") != NULL) {
 
     FATAL("ld loop detected! Set AFL_REAL_LD!\n");