source: patches/kbd-1.12-sparc_kbdrate-1.patch@ 9a935bf

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 9a935bf was 69cde8d, checked in by Jim Gifford <clfs@…>, 19 years ago

Added: All patches needed for the book.

  • Property mode set to 100644
File size: 1.0 KB
RevLine 
[69cde8d]1Submitted By: Jim Gifford (patches at jg555 dot com)
2Date: 2005-07-01
3Initial Package Version: 1.12
4Origin: Gentoo CVS
5Upstream Status: Unknown
6Description: Sparc have not yet fixed struct kbd_rate to use 'period' and not 'rate'
7
8diff -Naur kbd-1.12.orig/src/kbdrate.c kbd-1.12/src/kbdrate.c
9--- kbd-1.12.orig/src/kbdrate.c 2004-01-16 19:45:31.000000000 +0000
10+++ kbd-1.12/src/kbdrate.c 2005-07-02 06:52:54.000000000 +0000
11@@ -164,10 +164,10 @@
12 exit( 1 );
13 }
14
15- kbdrate_s.period = (int) (rate + 0.5); /* round up */
16+ kbdrate_s.rate = (int) (rate + 0.5); /* round up */
17 kbdrate_s.delay = delay * HZ / 1000; /* convert ms to Hz */
18- if (kbdrate_s.period > 50)
19- kbdrate_s.period = 50;
20+ if (kbdrate_s.rate > 50)
21+ kbdrate_s.rate = 50;
22
23 if (ioctl( fd, KIOCSRATE, &kbdrate_s )) {
24 perror( "ioctl(KIOCSRATE)" );
25@@ -177,7 +177,7 @@
26
27 if (!silent)
28 printf( "Typematic Rate set to %d cps (delay = %d ms)\n",
29- kbdrate_s.period, kbdrate_s.delay * 1000 / HZ );
30+ kbdrate_s.rate, kbdrate_s.delay * 1000 / HZ );
31
32 return 1;
33 #else /* no KIOCSRATE */
Note: See TracBrowser for help on using the repository browser.