/[linux-patches]/genpatches-2.6/trunk/2.6.16-pre/4901_speakup-highlight-tracking-amd64.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.16-pre/4901_speakup-highlight-tracking-amd64.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 284 - (show annotations) (download) (as text)
Sun Jan 22 20:05:33 2006 UTC (14 years, 10 months ago) by phreak
File MIME type: text/x-diff
File size: 908 byte(s)
Fix a reject in 4901_speakup-highlight-tracking-amd64.patch (drivers/char/speakup/speakup.c: Hunk #1)
1 Index: linux-git/drivers/char/speakup/speakup.c
2 ===================================================================
3 --- linux-git.orig/drivers/char/speakup/speakup.c
4 +++ linux-git/drivers/char/speakup/speakup.c
5 @@ -2148,19 +2148,20 @@ reset_highlight_buffers( struct vc_data
6 static int
7 count_highlight_color(struct vc_data *vc)
8 {
9 - int i,j,bg,ch;
10 + int i,bg;
11 int cc;
12 int vc_num=vc->vc_num;
13 - unsigned int start,end;
14 + u16 ch;
15 + u16 *start = (u16 *) vc->vc_origin;
16
17 for ( i=0 ; i<8 ; i++ )
18 speakup_console[vc_num]->ht.bgcount[i]=0;
19
20 - start=vc->vc_origin;
21 for ( i=0 ; i<vc->vc_rows; i++ ){
22 - end = start + vc->vc_cols*2;
23 - for ( j=start ; j<end ; j+=2){
24 - ch = scr_readw( (ushort *) j );
25 + u16 *end = start + vc->vc_cols*2;
26 + u16 *ptr;
27 + for ( ptr=start ; ptr<end ; ptr++){
28 + ch = scr_readw( ptr );
29 bg = ( ch & 0x7000 ) >> 12;
30 speakup_console[vc_num]->ht.bgcount[bg]++;
31 }

  ViewVC Help
Powered by ViewVC 1.1.20