cdecl void

This commit is contained in:
van Hauser
2020-07-30 18:06:25 +02:00
parent 486e5365d9
commit c661587128
2 changed files with 6 additions and 6 deletions

View File

@ -115,10 +115,10 @@ static library_list_t liblist[MAX_LIB_COUNT];
static u32 liblist_cnt; static u32 liblist_cnt;
static void sigtrap_handler(int signum, siginfo_t *si, void *context); static void sigtrap_handler(int signum, siginfo_t *si, void *context);
static void fuzz(); static void fuzz(void);
/* read the library information */ /* read the library information */
void read_library_information() { void read_library_information(void) {
#if defined(__linux__) #if defined(__linux__)
FILE *f; FILE *f;
@ -284,7 +284,7 @@ library_list_t *find_library(char *name) {
// this seems to work for clang too. nice :) requires gcc 4.4+ // this seems to work for clang too. nice :) requires gcc 4.4+
#pragma GCC push_options #pragma GCC push_options
#pragma GCC optimize("O0") #pragma GCC optimize("O0")
void breakpoint() { void breakpoint(void) {
if (debug) fprintf(stderr, "Breakpoint function \"breakpoint\" reached.\n"); if (debug) fprintf(stderr, "Breakpoint function \"breakpoint\" reached.\n");
@ -461,7 +461,7 @@ inline static void __afl_end_testcase(int status) {
((uintptr_t)addr & 0x3) * 0x10000000000)) ((uintptr_t)addr & 0x3) * 0x10000000000))
#endif #endif
void setup_trap_instrumentation() { void setup_trap_instrumentation(void) {
library_list_t *lib_base = NULL; library_list_t *lib_base = NULL;
size_t lib_size = 0; size_t lib_size = 0;
@ -748,7 +748,7 @@ int main(int argc, char *argv[]) {
inline inline
#endif #endif
static void static void
fuzz() { fuzz(void) {
// STEP 3: call the function to fuzz, also the functions you might // STEP 3: call the function to fuzz, also the functions you might
// need to call to prepare the function and - important! - // need to call to prepare the function and - important! -

View File

@ -66,7 +66,7 @@ struct afl_snapshot_vmrange_args {
static int afl_snapshot_dev_fd; static int afl_snapshot_dev_fd;
static int afl_snapshot_init() { static int afl_snapshot_init(void) {
afl_snapshot_dev_fd = open(AFL_SNAPSHOT_FILE_NAME, 0); afl_snapshot_dev_fd = open(AFL_SNAPSHOT_FILE_NAME, 0);
return afl_snapshot_dev_fd; return afl_snapshot_dev_fd;