mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
eliminated cast to DeliveryStatus struct
This commit is contained in:
parent
79e1096eca
commit
b30de01b12
4 changed files with 34 additions and 34 deletions
|
@ -288,8 +288,7 @@ namespace client
|
|||
|
||||
void ClientDestination::HandleDeliveryStatusMessage (I2NPMessage * msg)
|
||||
{
|
||||
I2NPDeliveryStatusMsg * deliveryStatus = (I2NPDeliveryStatusMsg *)msg->GetPayload ();
|
||||
uint32_t msgID = bufbe32toh (&(deliveryStatus->msgID));
|
||||
uint32_t msgID = bufbe32toh (msg->GetPayload () + DELIVERY_STATUS_MSGID_OFFSET);
|
||||
if (msgID == m_PublishReplyToken)
|
||||
{
|
||||
LogPrint (eLogDebug, "Publishing confirmed");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue