source:
patches/kbd-1.12-sparc_kbdrate-1.patch@
08fa163
Last change on this file since 08fa163 was 69cde8d, checked in by , 19 years ago | |
---|---|
|
|
File size: 1.0 KB |
-
src/kbdrate.c
Submitted By: Jim Gifford (patches at jg555 dot com) Date: 2005-07-01 Initial Package Version: 1.12 Origin: Gentoo CVS Upstream Status: Unknown Description: Sparc have not yet fixed struct kbd_rate to use 'period' and not 'rate' diff -Naur kbd-1.12.orig/src/kbdrate.c kbd-1.12/src/kbdrate.c
old new 164 164 exit( 1 ); 165 165 } 166 166 167 kbdrate_s. period= (int) (rate + 0.5); /* round up */167 kbdrate_s.rate = (int) (rate + 0.5); /* round up */ 168 168 kbdrate_s.delay = delay * HZ / 1000; /* convert ms to Hz */ 169 if (kbdrate_s. period> 50)170 kbdrate_s. period= 50;169 if (kbdrate_s.rate > 50) 170 kbdrate_s.rate = 50; 171 171 172 172 if (ioctl( fd, KIOCSRATE, &kbdrate_s )) { 173 173 perror( "ioctl(KIOCSRATE)" ); … … 177 177 178 178 if (!silent) 179 179 printf( "Typematic Rate set to %d cps (delay = %d ms)\n", 180 kbdrate_s. period, kbdrate_s.delay * 1000 / HZ );180 kbdrate_s.rate, kbdrate_s.delay * 1000 / HZ ); 181 181 182 182 return 1; 183 183 #else /* no KIOCSRATE */
Note:
See TracBrowser
for help on using the repository browser.