diff options
Diffstat (limited to 'perl-install/detect_devices.pm')
-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; }; |