summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-01-19 17:14:59 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-01-19 17:14:59 +0000
commit4603973566067871c5811e94982360e680006bab (patch)
treec92bd1ab96bc0ef21d27b1d99a0e71c23b0d2224 /perl-install
parent68a32ce8a169139bbaea216f07d42cee145b23ae (diff)
downloaddrakx-4603973566067871c5811e94982360e680006bab.tar
drakx-4603973566067871c5811e94982360e680006bab.tar.gz
drakx-4603973566067871c5811e94982360e680006bab.tar.bz2
drakx-4603973566067871c5811e94982360e680006bab.tar.xz
drakx-4603973566067871c5811e94982360e680006bab.zip
(getUPS) use HIDIOCAPPLICATION ioctl definition from c module
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/detect_devices.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index 47f3f91e0..486715387 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -444,8 +444,7 @@ sub getUPS() {
my $hiddev_find_application = sub {
my ($fd, $usage) = @_;
my ($i, $ret) = 0;
- # HIDIOCAPPLICATION from /usr/include/linux/hiddev.h:
- do { $i++ } while ($ret = ioctl($fd, 0x4802, $i)) && $ret != $usage;
+ do { $i++ } while ($ret = ioctl($fd, c::HIDIOCAPPLICATION(), $i)) && $ret != $usage;
return $ret == $usage ? 1 : 0;
};