summaryrefslogtreecommitdiff
path: root/hardware-conf.in
diff options
context:
space:
mode:
authorunammx <unammx>2000-09-28 20:57:55 +0000
committerunammx <unammx>2000-09-28 20:57:55 +0000
commit590fd1e5ff548bc268f80eb2a1d8cec2d8229a0c (patch)
tree70c8bbf03c878a076a5b4ca454ea7d890ad21cd7 /hardware-conf.in
parent47b4a6c42c0154792b4c97eaeb24e65df64b1bf5 (diff)
Erased a bunch of warnings, and included mistakenly erased code.
Diffstat (limited to 'hardware-conf.in')
-rwxr-xr-xhardware-conf.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/hardware-conf.in b/hardware-conf.in
index e0d0695..c3ca720 100755
--- a/hardware-conf.in
+++ b/hardware-conf.in
@@ -427,7 +427,7 @@ sub read_proc_ide
opendir CONTROLLER_DIR, "/proc/ide";
- if (CONTROLLER_DIR)
+ if (*CONTROLLER_DIR)
{
foreach $i (readdir (CONTROLLER_DIR))
{
@@ -436,7 +436,7 @@ sub read_proc_ide
}
}
- closedir CONTROLLER_DIR;
+ closedir (CONTROLLER_DIR);
}
# Read SCSI information
@@ -637,7 +637,7 @@ sub combine
'type' => "Keyboard",
'id' => "XFree86:$device->{name}",
'driver' => $device->{driver},
- 'name' => "$words[$index_kdb] keyboard"
+ 'name' => "$words[$index_kbd] keyboard"
}
}
elsif ($device->{driver} eq 'mouse')