From 8cc99d7f45fe0faa51f19d60583272087e80d25c Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Tue, 18 Nov 2008 17:15:09 +0000 Subject: [PATCH] Only export the ceil function from POSIX. By default, POSIX exports everything, and this happens to generate warnings when using perl 5.10.0. That's a perl bug, but we can still work around it and avoid potential future issues of the same kind. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5388 7894878c-1315-0410-8ee3-d5d059ff63e0 --- CHANGES | 1 + eeprom/decode-dimms | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 2605557..1e527af 100644 --- a/CHANGES +++ b/CHANGES @@ -4,6 +4,7 @@ i2c-tools CHANGES SVN i2c-dev.h: Drop I2C_FUNC_SMBUS_*I2C_BLOCK_2 defines decode-dimms: Add support for little-endian word hexdumps + Only export the ceil function from POSIX decode-vaio: Remove history i2cdetect: Support i2c bus passed by name Shorten the usage message diff --git a/eeprom/decode-dimms b/eeprom/decode-dimms index 3146c0a..82a94ee 100755 --- a/eeprom/decode-dimms +++ b/eeprom/decode-dimms @@ -38,7 +38,7 @@ require 5.004; use strict; -use POSIX; +use POSIX qw(ceil); use Fcntl qw(:DEFAULT :seek); use vars qw($opt_html $opt_bodyonly $opt_igncheck $use_sysfs $use_hexdump @vendors %decode_callback $revision @dimm_list %hexdump_cache);