summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2004-02-08 15:25:16 +0000
committerMartin Schlemmer <azarah@gentoo.org>2004-02-08 15:25:16 +0000
commitf4d5acef6c01d1cc57202e86b9f3918ecb9bb17e (patch)
treef4fdedc6855334e0c80ae9314a7e101ea40d17e3 /sys-apps/kbd/files
parentUpdate snapshot to 20040207. Fix an assert when running libc.so from (diff)
downloadgentoo-2-f4d5acef6c01d1cc57202e86b9f3918ecb9bb17e.tar.gz
gentoo-2-f4d5acef6c01d1cc57202e86b9f3918ecb9bb17e.tar.bz2
gentoo-2-f4d5acef6c01d1cc57202e86b9f3918ecb9bb17e.zip
Update patch from Andries again.
Diffstat (limited to 'sys-apps/kbd/files')
-rw-r--r--sys-apps/kbd/files/digest-kbd-1.12-r21
-rw-r--r--sys-apps/kbd/files/kbd-1.12-kbd_repeat-v2.patch25
2 files changed, 26 insertions, 0 deletions
diff --git a/sys-apps/kbd/files/digest-kbd-1.12-r2 b/sys-apps/kbd/files/digest-kbd-1.12-r2
new file mode 100644
index 000000000000..b2e1581b948e
--- /dev/null
+++ b/sys-apps/kbd/files/digest-kbd-1.12-r2
@@ -0,0 +1 @@
+MD5 7892c7010512a9bc6697a295c921da25 kbd-1.12.tar.gz 884827
diff --git a/sys-apps/kbd/files/kbd-1.12-kbd_repeat-v2.patch b/sys-apps/kbd/files/kbd-1.12-kbd_repeat-v2.patch
new file mode 100644
index 000000000000..bc924b7d2176
--- /dev/null
+++ b/sys-apps/kbd/files/kbd-1.12-kbd_repeat-v2.patch
@@ -0,0 +1,25 @@
+--- kbd-1.12/src/kbdrate.c Fri Jan 16 20:45:31 2004
++++ kbd-1.12.kbdrate/src/kbdrate.c Sun Feb 8 14:52:04 2004
+@@ -164,10 +169,10 @@
+ exit( 1 );
+ }
+
+- kbdrate_s.period = (int) (rate + 0.5); /* round up */
++ kbdrate_s.rate = (int) (rate + 0.5); /* round up */
+ kbdrate_s.delay = delay * HZ / 1000; /* convert ms to Hz */
+- if (kbdrate_s.period > 50)
+- kbdrate_s.period = 50;
++ if (kbdrate_s.rate > 50)
++ kbdrate_s.rate = 50;
+
+ if (ioctl( fd, KIOCSRATE, &kbdrate_s )) {
+ perror( "ioctl(KIOCSRATE)" );
+@@ -177,7 +182,7 @@
+
+ if (!silent)
+ printf( "Typematic Rate set to %d cps (delay = %d ms)\n",
+- kbdrate_s.period, kbdrate_s.delay * 1000 / HZ );
++ kbdrate_s.rate, kbdrate_s.delay * 1000 / HZ );
+
+ return 1;
+ #else /* no KIOCSRATE */