{
S32 n; /* counter */
S32 size; /* size of mblks of same type as head/tail */
- U8 type; /* message type */
+ uint8_t type; /* message type */
SsMblk *bp; /* mblk for iteration */
SsMblk *first; /* first mblk to be adjusted */
SsMblk *ssAllocB
(
S32 size, /* required size */
-U32 pri /* message priority */
+uint32_t pri /* message priority */
)
#else
SsMblk *ssAllocB(size, pri)
S32 size; /* required size */
-U32 pri; /* message priority */
+uint32_t pri; /* message priority */
#endif
{
SsMblk *bp; /* mblk for iteration */
#ifdef T2K_MEM_LEAK_DBG
char* file = __FILE__;
- U32 line = __LINE__;
+ uint32_t line = __LINE__;
#endif
UNUSED(pri);
m = (sizeof(SsMblk) + sizeof(SsDblk));
/* ss001.301: additions */
#ifdef SS_HISTOGRAM_SUPPORT
- r = SAlloc(strmCfg.mdRegion, &m, 0, (Data **)&bp, __LINE__, (U8*)__FILE__, ENTNC);
+ r = SAlloc(strmCfg.mdRegion, &m, 0, (Data **)&bp, __LINE__, (uint8_t*)__FILE__, ENTNC);
#else
r = SAlloc(strmCfg.mdRegion, &m, 0, (Data **)&bp);
#endif /* SS_HISTOGRAM_SUPPORT */
n = size;
/* ss001.301: additions */
#ifdef SS_HISTOGRAM_SUPPORT
- r = SAlloc(strmCfg.datRegion, &n, 0, &dat, __LINE__, (U8*)__FILE__, ENTNC);
+ r = SAlloc(strmCfg.datRegion, &n, 0, &dat, __LINE__, (uint8_t*)__FILE__, ENTNC);
#else
r = SAlloc(strmCfg.datRegion, &n, 0, &dat);
#endif /* SS_HISTOGRAM_SUPPORT */
/* ss001.301: additions */
#ifdef SS_HISTOGRAM_SUPPORT
- SFree(strmCfg.mdRegion, (Data *)bp, m, __LINE__, (U8*)__FILE__, ENTNC);
+ SFree(strmCfg.mdRegion, (Data *)bp, m, __LINE__, (uint8_t*)__FILE__, ENTNC);
#else
SFree(strmCfg.mdRegion, (Data *)bp, m);
#endif /* SS_HISTOGRAM_SUPPORT */
}
/* generic set-up-message function */
- SS_STRM_INITB(bp, (SsDblk *)(((U8 *)bp) + sizeof(SsMblk)), dat, size, NULLP);
+ SS_STRM_INITB(bp, (SsDblk *)(((uint8_t *)bp) + sizeof(SsMblk)), dat, size, NULLP);
return (bp);
#endif
{
SsMblk *bp; /* mblk for iteration */
- U8 *ptr; /* pointer to data */
- U32 size; /* size of data content */
+ uint8_t *ptr; /* pointer to data */
+ uint32_t size; /* size of data content */
#if (ERRCLASS & ERRCLS_INT_PAR)
#ifdef ANSI
SsMblk *ssESBAlloc
(
-U8 *base, /* client supplied data buffer */
+uint8_t *base, /* client supplied data buffer */
S32 size, /* size of data buffer */
S32 pri, /* message priority */
SsFrtn *fr_rtn /* free routine */
)
#else
SsMblk *ssESBAlloc(base, size, pri, fr_rtn)
-U8 *base; /* client supplied data buffer */
+uint8_t *base; /* client supplied data buffer */
S32 size; /* size of data buffer */
S32 pri; /* message priority */
SsFrtn *fr_rtn; /* free routine */
m = (sizeof(SsMblk) + sizeof(SsDblk));
/* ss001.301: additions */
#ifdef SS_HISTOGRAM_SUPPORT
- r = SAlloc(strmCfg.mdRegion, &m, 0, (Data **)&bp, __LINE__, (U8*)__FILE__, ENTNC);
+ r = SAlloc(strmCfg.mdRegion, &m, 0, (Data **)&bp, __LINE__, (uint8_t*)__FILE__, ENTNC);
#else
#ifdef T2K_MEM_LEAK_DBG
char* file = __FILE__;
- U32 line = __LINE__;
+ uint32_t line = __LINE__;
#endif
r = SAlloc(strmCfg.mdRegion, &m, 0, (Data **)&bp);
#endif /* SS_HISTOGRAM_SUPPORT */
/* use the generic set-up-message function to initialize everything */
- SS_STRM_INITB(bp, (SsDblk *)(((U8 *)bp) + sizeof(SsMblk)),
+ SS_STRM_INITB(bp, (SsDblk *)(((uint8_t *)bp) + sizeof(SsMblk)),
base, size, fr_rtn);
#ifdef T2K_MEM_LEAK_DBG
char* file = __FILE__;
- U32 line = __LINE__;
+ uint32_t line = __LINE__;
#endif
#if (ERRCLASS & ERRCLS_INT_PAR)
if (mp == NULLP)
{
SSLOGERROR(ERRCLS_INT_PAR, ESS341, ERRZERO, "Null pointer");
- RETVOID;
+ return;
}
#endif
if (mp->b_datap == NULLP)
{
- RETVOID;
+ return;
}
/* ss001.301: additions */
#ifdef SS_HISTOGRAM_SUPPORT
- SFree(strmCfg.mdRegion, (Data *)mp, size, __LINE__, (U8*)__FILE__, ENTNC);
+ SFree(strmCfg.mdRegion, (Data *)mp, size, __LINE__, (uint8_t*)__FILE__, ENTNC);
#else
#ifdef T2K_MEM_LEAK_DBG
SFree(strmCfg.mdRegion, (Data *)mp, size);
SFree(strmCfg.mdRegion, (Data *)mp, size);
#endif
#endif /* SS_HISTOGRAM_SUPPORT */
- RETVOID;
+ return;
}
/* ss028.103 - Addition of lock for mBuf reference count */
{
SSLOGERROR(ERRCLS_DEBUG, ESS343, ERRZERO,
"Could not lock the mBuf Ref Lock");
- RETVOID;
+ return;
}
#endif
#if (ERRCLASS & ERRCLS_DEBUG)
SSLOGERROR(ERRCLS_DEBUG, ESS344, ERRZERO,
"Could not give the Semaphore");
- RETVOID;
+ return;
#endif
}
#endif
#ifdef SS_HISTOGRAM_SUPPORT
SFree(strmCfg.datRegion, mp->b_datap->db_base,
(Size)(mp->b_datap->db_lim - mp->b_datap->db_base),
- __LINE__, (U8*)__FILE__, ENTNC);
+ __LINE__, (uint8_t*)__FILE__, ENTNC);
#else
SFree(strmCfg.datRegion, mp->b_datap->db_base,
(Size)(mp->b_datap->db_lim - mp->b_datap->db_base));
bp = (SsMblk *)(mp->b_datap - sizeof (SsMblk));
/* ss001.301: additions */
#ifdef SS_HISTOGRAM_SUPPORT
- SFree(strmCfg.mdRegion, (Data *)bp, size, __LINE__, (U8*)__FILE__, ENTNC);
+ SFree(strmCfg.mdRegion, (Data *)bp, size, __LINE__, (uint8_t*)__FILE__, ENTNC);
#else
SFree(strmCfg.mdRegion, (Data *)bp, size);
#endif /* SS_HISTOGRAM_SUPPORT */
/* ss001.301: additions */
#ifdef SS_HISTOGRAM_SUPPORT
- SFree(strmCfg.mdRegion, (Data *)mp, size, __LINE__, (U8*)__FILE__, ENTNC);
+ SFree(strmCfg.mdRegion, (Data *)mp, size, __LINE__, (uint8_t*)__FILE__, ENTNC);
#else
SFree(strmCfg.mdRegion, (Data *)mp, size);
#endif /* SS_HISTOGRAM_SUPPORT */
{
/* ss001.301: additions */
#ifdef SS_HISTOGRAM_SUPPORT
- SFree(strmCfg.mdRegion, (Data *)mp, size, __LINE__, (U8*)__FILE__, ENTNC);
+ SFree(strmCfg.mdRegion, (Data *)mp, size, __LINE__, (uint8_t*)__FILE__, ENTNC);
#else
SFree(strmCfg.mdRegion, (Data *)mp, size);
#endif /* SS_HISTOGRAM_SUPPORT */
}
}
- RETVOID;
+ return;
} /* ssFreeB */
\f
ssFreeB(bp);
}
- RETVOID;
+ return;
} /* ssFreeMsg */
\f
if (mp == NULLP || bp == NULLP)
{
SSLOGERROR(ERRCLS_INT_PAR, ESS345, ERRZERO, "Null pointer");
- RETVOID;
+ return;
}
#endif
/* link in the passed mblock */
mp->b_cont = bp;
- RETVOID;
+ return;
} /* ssLinkB */
\f
SsMblk *bp; /* mblk for iteration */
SsMblk *newbp; /* the new mblk */
SsMblk *prev; /* mblk of same type */
- U8 *base; /* for swapping data buffers */
- U8 *lim; /* for swapping data buffers */
- U8 *rptr; /* for swapping data buffers */
- U8 *wptr; /* for swapping data buffers */
+ uint8_t *base; /* for swapping data buffers */
+ uint8_t *lim; /* for swapping data buffers */
+ uint8_t *rptr; /* for swapping data buffers */
+ uint8_t *wptr; /* for swapping data buffers */
/* ss008.301 */
#ifdef SS_DBLK_FREE_RTN
SsFrtn *frtn; /* for swapping data buffers */
S32 mLen; /* number of bytes in all blocks of same type */
S32 m; /* temporary */
S32 n; /* temporary */
- U8 type; /* message type */
+ uint8_t type; /* message type */
#if (ERRCLASS & ERRCLS_INT_PAR)
if (mp == NULLP)
S32 ssTestB
(
S32 size, /* size required */
-U32 pri /* priority of the message buffer */
+uint32_t pri /* priority of the message buffer */
)
#else
S32 ssTestB(size, pri)
S32 size; /* size required */
-U32 pri; /* priority of the message buffer */
+uint32_t pri; /* priority of the message buffer */
#endif
{
SsMblk *bp; /* mblk for iteration */