diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2004-01-19 17:14:59 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2004-01-19 17:14:59 +0000 |
commit | 4603973566067871c5811e94982360e680006bab (patch) | |
tree | c92bd1ab96bc0ef21d27b1d99a0e71c23b0d2224 | |
parent | 68a32ce8a169139bbaea216f07d42cee145b23ae (diff) | |
download | drakx-backup-do-not-use-4603973566067871c5811e94982360e680006bab.tar drakx-backup-do-not-use-4603973566067871c5811e94982360e680006bab.tar.gz drakx-backup-do-not-use-4603973566067871c5811e94982360e680006bab.tar.bz2 drakx-backup-do-not-use-4603973566067871c5811e94982360e680006bab.tar.xz drakx-backup-do-not-use-4603973566067871c5811e94982360e680006bab.zip |
(getUPS) use HIDIOCAPPLICATION ioctl definition from c module
-rw-r--r-- | perl-install/detect_devices.pm | 3 |
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; }; |