mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-23 13:09:00 +00:00
Avoid cppcheck warnings; removing unused vars and a bit of cleanup.
Patch by: Clod Patry Review: https://reviewboard.asterisk.org/r/1651 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@354429 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -726,7 +726,7 @@ void* memHeapRealloc (void** ppvMemHeap, void* mem_p, int nbytes_)
|
||||
OSMemLink** ppMemLink;
|
||||
OSMemBlk* pMemBlk;
|
||||
OSMemElemDescr* pElem;
|
||||
OSMemLink* pMemLink, *pPrevMemLink = 0;
|
||||
OSMemLink* pMemLink;
|
||||
void *newMem_p;
|
||||
unsigned nbytes, nunits;
|
||||
|
||||
@@ -758,7 +758,6 @@ void* memHeapRealloc (void** ppvMemHeap, void* mem_p, int nbytes_)
|
||||
*(int*)(((char*)pMemLink) + sizeof (OSMemLink)) = nbytes_;
|
||||
return pMemLink->pMemBlk;
|
||||
}
|
||||
pPrevMemLink = pMemLink;
|
||||
}
|
||||
|
||||
/* Round number of bytes to nearest 8-byte boundary */
|
||||
|
Reference in New Issue
Block a user