From 8331b3c425b2ac45c32a6314d788595caa2dba60 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 6 Jun 2021 01:57:41 +0200 Subject: [PATCH] Cleanups --- src/fceu-memory.c | 6 ++---- src/ppu.h | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/fceu-memory.c b/src/fceu-memory.c index 6dfecfe..2b99dfb 100644 --- a/src/fceu-memory.c +++ b/src/fceu-memory.c @@ -28,8 +28,7 @@ void *FCEU_gmalloc(uint32 size) { - void *ret; - ret = malloc(size); + void *ret = malloc(size); if (!ret) { FCEU_PrintError("Error allocating memory! Doing a hard exit."); @@ -41,8 +40,7 @@ void *FCEU_gmalloc(uint32 size) void *FCEU_malloc(uint32 size) { - void *ret; - ret = (void*)malloc(size); + void *ret = (void*)malloc(size); if (!ret) { diff --git a/src/ppu.h b/src/ppu.h index 96338a1..e3f6cfd 100644 --- a/src/ppu.h +++ b/src/ppu.h @@ -6,7 +6,7 @@ void FCEUPPU_Reset(void); void FCEUPPU_Power(void); int FCEUPPU_Loop(int skip); -void FCEUPPU_LineUpdate(); +void FCEUPPU_LineUpdate(void); void FCEUPPU_SetVideoSystem(int w); extern void (*GameHBIRQHook)(void), (*GameHBIRQHook2)(void);