]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] Compilation fix in src/lib/dhcp/addr_utilities.cc (after 2238 merge)
authorTomek Mrugalski <tomasz@isc.org>
Mon, 1 Oct 2012 15:54:51 +0000 (17:54 +0200)
committerTomek Mrugalski <tomasz@isc.org>
Mon, 1 Oct 2012 15:54:51 +0000 (17:54 +0200)
src/lib/dhcp/addr_utilities.cc

index 15999d496c8798de9d776612cb6dbeaa2e967bf8..e827fc287bf3b1d1310ef885e7fbe1c2640ee166 100644 (file)
@@ -22,7 +22,7 @@ namespace dhcp {
 isc::asiolink::IOAddress firstAddrInPrefix(const isc::asiolink::IOAddress& prefix,
                                             uint8_t len) {
 
-    static char bitMask[]= { 0, 0x80, 0xc0, 0xe0, 0xf0, 0xf8, 0xfc, 0xfe, 0xff };
+    const static uint8_t bitMask[]= { 0, 0x80, 0xc0, 0xe0, 0xf0, 0xf8, 0xfc, 0xfe, 0xff };
     uint8_t packed[V6ADDRESS_LEN];
 
     // First we copy the whole address as 16 bytes.
@@ -57,7 +57,7 @@ isc::asiolink::IOAddress firstAddrInPrefix(const isc::asiolink::IOAddress& prefi
 isc::asiolink::IOAddress lastAddrInPrefix(const isc::asiolink::IOAddress& prefix,
                                            uint8_t len) {
 
-    static char bitMask[]= { 0, 0x80, 0xc0, 0xe0, 0xf0, 0xf8, 0xfc, 0xfe, 0xff };
+    const static uint8_t bitMask[]= { 0, 0x80, 0xc0, 0xe0, 0xf0, 0xf8, 0xfc, 0xfe, 0xff };
     uint8_t packed[V6ADDRESS_LEN];
 
     // First we copy the whole address as 16 bytes.