Red Hat Linux
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
You seem to have CSS turned off.
Please don't fill out this field.
Briefly describe the problem (required):
Please provide the ad click URL, if possible:
Date: 2008-10-24 09:20:58 -0500 (Fri, 24 Oct 2008)
New Revision: 4466
fix warning in si_mkdhcpserver on 64-bit architectures
In 64-bit architectures this warning occurs running si_mkdhcpserver:
Hexadecimal number > 0xffffffff non-portable at /usr/lib/systemimager/perl/SystemImager/HostRange.pm line 454, <STDIN> line 6.
Fix it using a 32-bit bitmask to set the upper bound of unsigned long.
Signed-off-by: Andrea Righi <righi.andrea@...>
--- trunk/sbin/si_mkdhcpserver 2008-10-21 08:45:18 UTC (rev 4465)
+++ trunk/sbin/si_mkdhcpserver 2008-10-24 14:20:58 UTC (rev 4466)
@@ -220,7 +220,8 @@
$rangeend = SystemImager::HostRange::hex2ip(
- (($hex_netnumber & $hex_netmask) | (~$hex_netmask)) - 1
+ (($hex_netnumber & $hex_netmask) |
+ (~$hex_netmask) & 0xffffffff) - 1
Sign up for the SourceForge newsletter: