From 7de438565f03123d37f737d2cd905579e90bc21e Mon Sep 17 00:00:00 2001 From: spv Date: Sun, 24 Apr 2022 21:30:15 -0400 Subject: yeet --- src/gen/common.h | 0 src/gen/ip_tools.c | 0 src/gen/ip_tools.h | 0 src/gen/patchfinder.h | 0 src/gen/shit.c | 62 ++++++++++++++++++++++----------------------- src/gen/shit.h | 10 ++++---- src/gen/stage0_primitives.c | 0 src/gen/stage0_primitives.h | 0 src/gen/stage1_primitives.c | 0 src/gen/stage1_primitives.h | 0 10 files changed, 36 insertions(+), 36 deletions(-) mode change 100644 => 100755 src/gen/common.h mode change 100644 => 100755 src/gen/ip_tools.c mode change 100644 => 100755 src/gen/ip_tools.h mode change 100644 => 100755 src/gen/patchfinder.h mode change 100644 => 100755 src/gen/stage0_primitives.c mode change 100644 => 100755 src/gen/stage0_primitives.h mode change 100644 => 100755 src/gen/stage1_primitives.c mode change 100644 => 100755 src/gen/stage1_primitives.h (limited to 'src/gen') diff --git a/src/gen/common.h b/src/gen/common.h old mode 100644 new mode 100755 diff --git a/src/gen/ip_tools.c b/src/gen/ip_tools.c old mode 100644 new mode 100755 diff --git a/src/gen/ip_tools.h b/src/gen/ip_tools.h old mode 100644 new mode 100755 diff --git a/src/gen/patchfinder.h b/src/gen/patchfinder.h old mode 100644 new mode 100755 diff --git a/src/gen/shit.c b/src/gen/shit.c index 6e6c5c5..ef354d4 100644 --- a/src/gen/shit.c +++ b/src/gen/shit.c @@ -1,32 +1,32 @@ -#include -#include "common.h" -#include -#include "shit.h" - -extern FILE* fp; - -int _asprintf(char **strp, const char *fmt, ...) { - va_list ap; - char* tmp = NULL; - - *strp = ""; - - /* - * shit - */ - - va_start(ap, fmt); - vfprintf(fp, fmt, ap); - va_end(ap); - -#if 0 - strcpy(fuck_memory_leaks, tmp); - - if (strp) - *strp = fuck_memory_leaks; - - free(tmp); -#endif - - return 0; +#include +#include "common.h" +#include +#include "shit.h" + +extern FILE* fp; + +int _asprintf(char **strp, const char *fmt, ...) { + va_list ap; + char* tmp = NULL; + + *strp = ""; + + /* + * shit + */ + + va_start(ap, fmt); + vfprintf(fp, fmt, ap); + va_end(ap); + +#if 0 + strcpy(fuck_memory_leaks, tmp); + + if (strp) + *strp = fuck_memory_leaks; + + free(tmp); +#endif + + return 0; } \ No newline at end of file diff --git a/src/gen/shit.h b/src/gen/shit.h index aaa4b7f..d97a995 100644 --- a/src/gen/shit.h +++ b/src/gen/shit.h @@ -1,6 +1,6 @@ -#ifndef SHIT_H -#define SHIT_H - -int _asprintf(char **strp, const char *fmt, ...); - +#ifndef SHIT_H +#define SHIT_H + +int _asprintf(char **strp, const char *fmt, ...); + #endif \ No newline at end of file diff --git a/src/gen/stage0_primitives.c b/src/gen/stage0_primitives.c old mode 100644 new mode 100755 diff --git a/src/gen/stage0_primitives.h b/src/gen/stage0_primitives.h old mode 100644 new mode 100755 diff --git a/src/gen/stage1_primitives.c b/src/gen/stage1_primitives.c old mode 100644 new mode 100755 diff --git a/src/gen/stage1_primitives.h b/src/gen/stage1_primitives.h old mode 100644 new mode 100755 -- cgit v1.2.3