[gtk-vnc-devel] [PATCH] compilation clean up for ISO_Left_Tab feature.



This patch fixes compilation warnings for ISO_Left_Tab feature.

Thanks,
Signed-off-by: Hiroyuki Kaguchi <fj7025cf aa jp fujitsu com>

diff -r f7fc5cf7bef0 src/vncdisplay.c
--- a/src/vncdisplay.c	Wed Mar 12 08:58:33 2008 -0500
+++ b/src/vncdisplay.c	Thu Mar 13 17:14:34 2008 +0900
@@ -14,6 +14,7 @@
 #include "utils.h"
 #include "vncmarshal.h"
 #include "config.h"
+#include "x_keymap.h"
 
 #include <gtk/gtk.h>
 #include <string.h>
diff -r f7fc5cf7bef0 src/x_keymap.c
--- a/src/x_keymap.c	Wed Mar 12 08:58:33 2008 -0500
+++ b/src/x_keymap.c	Thu Mar 13 17:24:26 2008 +0900
@@ -147,7 +147,7 @@ uint8_t x_keycode_to_pc_keycode(int keyc
 /* Set the keymap entries */
 void x_keymap_set_keymap_entries()
 {
-	int i;
+	size_t i;
 	if (ref_count_for_untranslated_keys == 0)
 		for (i = 0; i < sizeof(untranslated_keys) / sizeof(untranslated_keys[0]); i++)
 			gdk_keymap_get_entries_for_keyval(gdk_keymap_get_default(),
@@ -160,7 +160,7 @@ void x_keymap_set_keymap_entries()
 /* Free the keymap entries */
 void x_keymap_free_keymap_entries()
 {
-	int i;
+	size_t i;
 
 	if (ref_count_for_untranslated_keys == 0)
 		return;
@@ -175,7 +175,7 @@ void x_keymap_free_keymap_entries()
 /* Get the keyval from the keycode without the level. */
 guint x_keymap_get_keyval_from_keycode(guint keycode, guint keyval)
 {
-	int i, k;
+	size_t i;
 	for (i = 0; i < sizeof(untranslated_keys) / sizeof(untranslated_keys[0]); i++) {
 		if (keycode == untranslated_keys[i].keys[0].keycode) {
 			return untranslated_keys[i].keyval;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]