mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-18 12:48:06 +00:00
libtokencap: warning build fix.
This commit is contained in:
@ -33,6 +33,8 @@
|
|||||||
#include "../types.h"
|
#include "../types.h"
|
||||||
#include "../config.h"
|
#include "../config.h"
|
||||||
|
|
||||||
|
#include "debug.h"
|
||||||
|
|
||||||
#if !defined __linux__ && !defined __APPLE__ && !defined __FreeBSD__ && \
|
#if !defined __linux__ && !defined __APPLE__ && !defined __FreeBSD__ && \
|
||||||
!defined __OpenBSD__ && !defined __NetBSD__ && !defined __DragonFly__ && \
|
!defined __OpenBSD__ && !defined __NetBSD__ && !defined __DragonFly__ && \
|
||||||
!defined(__HAIKU__) && !defined(__sun)
|
!defined(__HAIKU__) && !defined(__sun)
|
||||||
@ -343,6 +345,12 @@ static void __tokencap_dump(const u8 *ptr, size_t len, u8 is_text) {
|
|||||||
wrt_ok &= (pos == write(__tokencap_out_file, buf, pos));
|
wrt_ok &= (pos == write(__tokencap_out_file, buf, pos));
|
||||||
wrt_ok &= (2 == write(__tokencap_out_file, "\"\n", 2));
|
wrt_ok &= (2 == write(__tokencap_out_file, "\"\n", 2));
|
||||||
|
|
||||||
|
if (!wrt_ok) {
|
||||||
|
|
||||||
|
DEBUGF("%s", "writing to the token file failed\n");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Replacements for strcmp(), memcmp(), and so on. Note that these will be used
|
/* Replacements for strcmp(), memcmp(), and so on. Note that these will be used
|
||||||
|
Reference in New Issue
Block a user