From 29e8281729544610db84f37e638fe9826cf83cee Mon Sep 17 00:00:00 2001 From: Aurora Date: Sun, 20 Mar 2016 17:16:40 +0100 Subject: [PATCH] Forgot this --- source/draw.c | 2 +- source/draw.h | 2 +- source/main.c | 1 - source/memory.c | 3 +-- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/source/draw.c b/source/draw.c index 9ea8769..9c64ec6 100644 --- a/source/draw.c +++ b/source/draw.c @@ -18,7 +18,7 @@ static int strlen(const char *string) return stringEnd - string; } -void clearScreens() +void clearScreens(void) { memset32(fb->top_left, 0, 0x46500); memset32(fb->top_right, 0, 0x46500); diff --git a/source/draw.h b/source/draw.h index d8c0b65..ae02835 100644 --- a/source/draw.h +++ b/source/draw.h @@ -5,6 +5,6 @@ #define SPACING_VERT 10 #define SPACING_HORIZ 8 -void clearScreens(); +void clearScreens(void); void drawCharacter(char character, int pos_x, int pos_y, u32 color); int drawString(const char *string, int pos_x, int pos_y, u32 color); \ No newline at end of file diff --git a/source/main.c b/source/main.c index c384dbf..7fa16e6 100644 --- a/source/main.c +++ b/source/main.c @@ -9,7 +9,6 @@ #include "fs.h" #include "installer.h" #include "screeninit.h" -#include "draw.h" #include "types.h" #define PDN_GPU_CNT (*(vu8 *)0x10141200) diff --git a/source/memory.c b/source/memory.c index 6848ed4..200d40f 100644 --- a/source/memory.c +++ b/source/memory.c @@ -21,9 +21,8 @@ void memset(void *dest, int filler, u32 size){ void memset32(void *dest, u32 filler, u32 size){ u32 *dest32 = (u32 *)dest; - for (u32 i = 0; i < size / 4; i++) { + for (u32 i = 0; i < size / 4; i++) dest32[i] = filler; - } } int memcmp(const void *buf1, const void *buf2, u32 size){