Skip to content

Commit e81beb7

Browse files
committed
Release version 0.2.7
1 parent 2893d4c commit e81beb7

File tree

6 files changed

+25
-9
lines changed

6 files changed

+25
-9
lines changed

ChangeLog

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
Sun Aug 20 14:06:59 EEST 2006 - Theodoros V. Kalamatianos <[email protected]>
2+
* Release 0.2.7
3+
* Fixed a bug in the keyboard autodetection code, where the automatic
4+
detection would fail if the first entry in /proc/bus/input/devices
5+
was not a keyboard (reported by Jerome Borme).
6+
* Improved the Linux-specific information in the README.
7+
* Minor bugfixes
8+
19
Tue May 2 21:28:16 EEST 2006 - Theodoros V. Kalamatianos <[email protected]>
210
* Release 0.2.6
311
* Updated the copyright notices

NEWS

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
0.2.6:
2-
* Updated the copyright notices
3-
* Various minor fixes
4-
* Updated the ToDo list, dropping several items
5-
* Minor documentation updates
1+
0.2.7:
2+
* Fixed a bug in the keyboard autodetection code, where the automatic
3+
detection would fail if the first entry in /proc/bus/input/devices
4+
was not a keyboard (reported by Jerome Borme).
5+
* Improved the Linux-specific information in the README.
6+
* Minor bugfixes

README

+6
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ In most cases, loading the `evdev' kernel module will be sufficient:
6161

6262
# modprobe evdev
6363

64+
In most Linux systems the device nodes to use are named /dev/input/eventX,
65+
where X is a decimal unsigned number, e.g. /dev/input/event0. If the /proc
66+
filesystem is mounted and accessible, actkbd should be able to detect a
67+
usable keyboard device. You should not need to manually specify one, unless
68+
there are multiple keyboards present.
69+
6470

6571

6672
3. Setup

config.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,8 @@ int open_config() {
373373
char *line;
374374
key_cmd *cmd;
375375
confentry *lastnode = NULL, *newnode = NULL;
376-
int lineno = 1, n = 0, ret = 0;
376+
int lineno = 1, ret = 0;
377+
size_t n = 0;
377378

378379
/* Allow the configuration file to be overridden */
379380
if (!config)

linux.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ int init_dev() {
6868
regcomp(&preg, "^H: Handlers=(.* )?kbd (.* )?event([0-9]+)", REG_EXTENDED);
6969
do {
7070
char l[128] = "";
71-
ret = fscanf(fp, "%127[^\n]%*c", l);
72-
if (ret < 1)
71+
void *str = fgets(l, 128, fp);
72+
if (str == NULL)
7373
break;
7474
ret = regexec(&preg, l, 4, pmatch, 0);
7575
if (ret == 0) {

version.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
* the Free Software Foundation.
99
*/
1010

11-
#define VERSION "0.2.6"
11+
#define VERSION "0.2.7"

0 commit comments

Comments
 (0)