X-Git-Url: https://git.teslayout.com/public/public/public/?a=blobdiff_plain;f=source%2Fdiameter%2Fcodec%2Ffunctions.cpp;h=8c5d35088bf0efbabb71d95e3db3d2d6d7ff83e3;hb=e3f60b6b4a178c63ebd6f8915431bfa485a2e601;hp=767d9605d59b7fdbab8647d9645f4a3546004957;hpb=2921c651c9945cefec0715167201596aaa079e8d;p=anna.git diff --git a/source/diameter/codec/functions.cpp b/source/diameter/codec/functions.cpp index 767d960..8c5d350 100644 --- a/source/diameter/codec/functions.cpp +++ b/source/diameter/codec/functions.cpp @@ -285,7 +285,7 @@ void functions::setHopByHop(anna::DataBlock & db, diameter::HopByHop hbh) throw( throw anna::RuntimeException("Not enough bytes to cover command header length", ANNA_FILE_LOCATION); } - static char source[4]; + char source[4]; source[0] = (char)(hbh >> 24); source[1] = (char)(hbh >> 16); source[2] = (char)(hbh >> 8); @@ -299,7 +299,7 @@ void functions::setEndToEnd(anna::DataBlock & db, diameter::EndToEnd ete) throw( throw anna::RuntimeException("Not enough bytes to cover command header length", ANNA_FILE_LOCATION); } - static char source[4]; + char source[4]; source[0] = (char)(ete >> 24); source[1] = (char)(ete >> 16); source[2] = (char)(ete >> 8); @@ -312,7 +312,7 @@ void functions::setPotentiallyReTransmittedMessageBit(const anna::DataBlock & db throw anna::RuntimeException("Not enough bytes to cover command header length", ANNA_FILE_LOCATION); } - static char flags[1]; + char flags[1]; flags[0] = *(db.getData() + 4); if(activate) flags[0] |= Message::TBitMask; else flags[0] &= (~Message::TBitMask); memcpy((char *)(db.getData() + 4), flags, 1);