aboutsummaryrefslogtreecommitdiffstats
path: root/console/fbtv.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-04-01 11:24:40 +0200
committerGerd Hoffmann <kraxel@redhat.com>2010-04-01 11:24:40 +0200
commit9bbee7df3b13eb0caf1874748038235350916fbd (patch)
tree3fb2783458e405e75e9e0b2fc4e26f38ee601f0d /console/fbtv.c
parent82fbaff22e3e4b1bbdd1e2192cfeff061ce7285c (diff)
v3.84
Diffstat (limited to 'console/fbtv.c')
-rw-r--r--console/fbtv.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/console/fbtv.c b/console/fbtv.c
index 9c4e868..2a20090 100644
--- a/console/fbtv.c
+++ b/console/fbtv.c
@@ -575,7 +575,8 @@ scaler_test(int off)
int
main(int argc, char *argv[])
{
- int key,i,c,gray=0,rc,vt=0,fps=0,t1,t2,lirc,js,err,mute=1,fdmax;
+ int i,key,c,gray=0,rc,vt=0,fps=0,t1,t2,lirc,js,err,mute=1,fdmax;
+ unsigned int ui;
unsigned long freq;
struct timeval tv;
time_t t;
@@ -801,8 +802,9 @@ main(int argc, char *argv[])
dst = fb_mem +
dy * fb_fix.line_length +
dx * ((fb_var.bits_per_pixel+7)/8);
- for (i = 0; i < buf->fmt.height; i++) {
- memcpy(dst,buf->data + i*buf->fmt.bytesperline, buf->fmt.bytesperline);
+ for (ui = 0; ui < buf->fmt.height; ui++) {
+ memcpy(dst, buf->data + ui*buf->fmt.bytesperline,
+ buf->fmt.bytesperline);
dst += fb_fix.line_length;
}
ng_release_video_buf(buf);
@@ -864,12 +866,12 @@ main(int argc, char *argv[])
sprintf(event,"kbd-key-f%d",key - KEY_F(0));
} else {
/* other special keys */
- for (i = 0; i < NKEYTAB; i++) {
- if (keytab[i].key == key)
+ for (ui = 0; ui < NKEYTAB; ui++) {
+ if (keytab[ui].key == key)
break;
}
- if (i != NKEYTAB)
- sprintf(event,"kbd-key-%s",keytab[i].name);
+ if (ui != NKEYTAB)
+ sprintf(event,"kbd-key-%s",keytab[ui].name);
}
if (0 != event[0]) {
event_dispatch(event);

Privacy Policy