summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlaf Hering <olh@suse.de>2004-06-29 05:19:54 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-06-29 05:19:54 -0700
commitb1bee10dc109acbced2f09445b77d0f317e0077c (patch)
tree0fe2521c9debbab962bd2e3de87f80035285d1c5
parentbdf04a0d051542b6c20f161acc4c0eb5d6bc3480 (diff)
[PATCH] signed bug in drivers/video/console/fbcon.c con2fb_map[]
drivers/video/console/fbcon.c:310: warning: comparison is always true due to limited range of data type char can be either signed or unsigned, depending on the target system. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--drivers/video/console/fbcon.c2
-rw-r--r--drivers/video/console/fbcon.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c
index ba3fa075e57d..2a4a79760cc1 100644
--- a/drivers/video/console/fbcon.c
+++ b/drivers/video/console/fbcon.c
@@ -101,7 +101,7 @@
#endif
struct display fb_display[MAX_NR_CONSOLES];
-char con2fb_map[MAX_NR_CONSOLES];
+signed char con2fb_map[MAX_NR_CONSOLES];
static int logo_height;
static int logo_lines;
static int logo_shown = -1;
diff --git a/drivers/video/console/fbcon.h b/drivers/video/console/fbcon.h
index 6764dbc2680a..539373d32a50 100644
--- a/drivers/video/console/fbcon.h
+++ b/drivers/video/console/fbcon.h
@@ -36,7 +36,7 @@ struct display {
};
/* drivers/video/console/fbcon.c */
-extern char con2fb_map[MAX_NR_CONSOLES];
+extern signed char con2fb_map[MAX_NR_CONSOLES];
extern int set_con2fb_map(int unit, int newidx);
/*