mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
Fix Some gcc warnings 383 to 208 lines
Left explicit #warning and deprecated. Some lines are wrong indented and produce mal formed code.
This commit is contained in:
parent
74aa55e347
commit
674b6de381
63 changed files with 379 additions and 346 deletions
|
@ -250,18 +250,19 @@ RsGRouterRoutingInfoItem *RsGRouterSerialiser::deserialise_RsGRouterRoutingInfoI
|
|||
else
|
||||
ok = false ;
|
||||
|
||||
// receipt item is optional.
|
||||
// Receipt item is optional.
|
||||
|
||||
if (offset < pktsize)
|
||||
{ //
|
||||
item->receipt_item = deserialise_RsGRouterSignedReceiptItem(&((uint8_t*)data)[offset],pktsize - offset);
|
||||
if (item->receipt_item != NULL)
|
||||
offset += item->receipt_item->serial_size();
|
||||
else //
|
||||
ok = false;
|
||||
}
|
||||
else //
|
||||
item->receipt_item = NULL;
|
||||
|
||||
if(offset < pktsize)
|
||||
{
|
||||
item->receipt_item = deserialise_RsGRouterSignedReceiptItem(&((uint8_t*)data)[offset],pktsize - offset) ;
|
||||
if(item->receipt_item != NULL)
|
||||
offset += item->receipt_item->serial_size() ;
|
||||
else
|
||||
ok = false ;
|
||||
}
|
||||
else
|
||||
item->receipt_item = NULL ;
|
||||
|
||||
|
||||
if (offset != rssize || !ok)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue