X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Frmr%2Fsi%2Fsrc%2Fsi95%2Fsitrash.c;fp=src%2Frmr%2Fsi%2Fsrc%2Fsi95%2Fsitrash.c;h=33c68011151d128c0a8ebdee208b18b91af79390;hb=fa454008020483ac35e1d20300cddfe877d8dd6d;hp=83671c78eef55eb7446ac4777d48ff1fdaf2d822;hpb=a00e2ad464d72d097d4272cecd8d6fe7da93fb64;p=ric-plt%2Flib%2Frmr.git diff --git a/src/rmr/si/src/si95/sitrash.c b/src/rmr/si/src/si95/sitrash.c index 83671c7..33c6801 100644 --- a/src/rmr/si/src/si95/sitrash.c +++ b/src/rmr/si/src/si95/sitrash.c @@ -20,20 +20,20 @@ /* *************************************************************************** -* +* * Mnemonic: sitrash * Abstract: Delete all things referenced by a struct and then free the memory. -* +* * Returns: Nothing * Date: 08 March 2007 -* Author: E. Scott Daniels +* Author: E. Scott Daniels * -****************************************************************************** +****************************************************************************** */ #include "sisetup.h" #include "sitransport.h" - + extern void SItrash( int type, void *bp ) { struct tp_blk *tp = NULL; @@ -52,14 +52,14 @@ extern void SItrash( int type, void *bp ) free( iptr->addr ); free( iptr ); break; - - case TP_BLK: // we assume its off the list + + case TP_BLK: // we assume its off the list tp = (struct tp_blk *) bp; - iptr = tp->squeue; + iptr = tp->squeue; while( iptr != NULL ) { inext = iptr->next; - free( iptr->data ); // we could recurse, but that seems silly + free( iptr->data ); // we could recurse, but that seems silly free( iptr->addr ); free( iptr ); @@ -69,10 +69,10 @@ extern void SItrash( int type, void *bp ) if( tp->fd >= 0 ) { CLOSE( tp->fd ); } - - free( tp->addr ); // release the address bufers - free( tp->paddr ); - free( tp ); // and release the block + + free( tp->addr ); // release the address bufers + free( tp->paddr ); + free( tp ); // and release the block break; } }