From f32a44403c044fc638c12e709b7c2fe5e130e566 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Wed, 24 Oct 2007 00:16:48 +0000
Subject: [PATCH] Fix warnings.

---
 src/conio/sdl_con.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/conio/sdl_con.c b/src/conio/sdl_con.c
index a697ed7f70..4611446f3d 100644
--- a/src/conio/sdl_con.c
+++ b/src/conio/sdl_con.c
@@ -410,7 +410,7 @@ void sdl_user_func(int func, ...)
 		case SDL_USEREVENT_SETVIDMODE:
 			{
 				int remain=2;
-				int ret=0;
+				int ret;
 
 				ev[0].user.code=SDL_USEREVENT_FLUSH;
 				ev[1].type=SDL_USEREVENT;
@@ -569,7 +569,7 @@ void sdl_drawrect(int xoffset,int yoffset,int width,int height,unsigned char *da
 		sdl_user_func(SDL_USEREVENT_UPDATERECT, rect);
 	}
 	else
-		FREE_AND_NULL(data);
+		free(data);
 }
 
 void sdl_flush(void)
@@ -1207,7 +1207,7 @@ void setup_surfaces(void)
 	int		char_width=vstat.charwidth*vstat.cols*vstat.scaling;
 	int		char_height=vstat.charheight*vstat.rows*vstat.scaling;
 	int		flags=SDL_HWSURFACE|SDL_ANYFORMAT;
-	SDL_Surface	*tmp_rect=NULL;
+	SDL_Surface	*tmp_rect;
 	SDL_Event	ev;
 
 	if(fullscreen)
-- 
GitLab