[PATCH] fixed a couple of typecast warnings in gtk-gui.c

Lubomir I. Ivanov neolit123 at gmail.com
Wed Nov 2 21:27:25 EDT 2011


From: "Lubomir I. Ivanov" <neolit123 at gmail.com>

Signed-off-by: Lubomir I. Ivanov <neolit123 at gmail.com>
---
 gtk-gui.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gtk-gui.c b/gtk-gui.c
index c78d7e6..da6d9a2 100644
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -428,7 +428,7 @@ static void preferences_dialog(GtkWidget *w, gpointer data)
 
 #define StoreInReg(_key, _val) { \
 			value = (_val) ;				\
-			RegSetValueEx(hkey, TEXT(_key), 0, REG_DWORD, &value, 4); \
+			RegSetValueEx(hkey, TEXT(_key), 0, REG_DWORD, (BYTE *)&value, 4); \
 		}
 
 		StoreInReg("feet", output_units.length == FEET);
@@ -805,7 +805,7 @@ void init_ui(int *argcp, char ***argvp)
 				(LPBYTE) divelist_font, &len );
 	if (success != ERROR_SUCCESS) {
 		/* that's what happens the first time we start - just use the default */
-		free(divelist_font);
+		free((char *)divelist_font);
 		divelist_font = NULL;
 	}
 	RegCloseKey(hkey);
-- 
1.7.6.msysgit.0



More information about the subsurface mailing list