X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrsch%2Frg_sch_utl_clist.c;h=9a73cb1278e394c1e730f39f512530e5b5b70136;hb=2bd852089c3226f721d83b30f816b90f803237f6;hp=c89b7dd2c650e2bf9b3a167d415171bff0b305e3;hpb=3f340f5742e5c7c92b8541479ee7f2d670200cfb;p=o-du%2Fl2.git diff --git a/src/5gnrsch/rg_sch_utl_clist.c b/src/5gnrsch/rg_sch_utl_clist.c index c89b7dd2c..9a73cb127 100755 --- a/src/5gnrsch/rg_sch_utl_clist.c +++ b/src/5gnrsch/rg_sch_utl_clist.c @@ -51,22 +51,17 @@ * File: rr_clist.c * */ -#ifdef ANSI Void rgSCHRrCListInit ( RgSchRrCListCp *lCp /* list control point */ ) -#else -Void rgSCHRrCListInit(lCp) -RgSchRrCListCp *lCp; /* list control point */ -#endif { lCp->first = (RgSchRrCList *)NULLP; lCp->crnt = (RgSchRrCList *)NULLP; lCp->count = 0; - RETVOID; + return; } /* end of rgSCHRrCListInit */ /* LTE_ADV_FLAG_REMOVED_START */ @@ -81,21 +76,15 @@ RgSchRrCListCp *lCp; /* list control point */ * * File: rr_clist.c */ -#ifdef ANSI Void rgSCHRrCListAdd2Crnt ( - RgSchRrCListCp *lCp, /* list control point */ - RgSchRrCList *node /* node to be added */ - ) -#else -Void rgSCHRrCListAdd2Crnt(lCp, node) - RgSchRrCListCp *lCp; /* list control point */ - RgSchRrCList *node; /* node to be added */ -#endif +RgSchRrCListCp *lCp, /* list control point */ +RgSchRrCList *node /* node to be added */ +) { #ifdef ERRCHK if (lCp == (RgSchRrCListCp *)NULLP) - RETVOID; + return; #endif lCp->count++; @@ -108,7 +97,7 @@ Void rgSCHRrCListAdd2Crnt(lCp, node) lCp->crnt = lCp->first; - RETVOID; + return; } node->next = lCp->crnt; @@ -116,7 +105,7 @@ Void rgSCHRrCListAdd2Crnt(lCp, node) lCp->crnt->prev->next = node; lCp->crnt->prev = node; - RETVOID; + return; } /* LTE_ADV_FLAG_REMOVED_END */ @@ -133,22 +122,16 @@ Void rgSCHRrCListAdd2Crnt(lCp, node) * File: rr_clist.c * */ -#ifdef ANSI Void rgSCHRrCListAdd2Tail ( RgSchRrCListCp *lCp, /* list control point */ RgSchRrCList *node /* node to be added */ ) -#else -Void rgSCHRrCListAdd2Tail(lCp, node) -RgSchRrCListCp *lCp; /* list control point */ -RgSchRrCList *node; /* node to be added */ -#endif { #ifdef ERRCHK if (lCp == (RgSchRrCListCp *)NULLP) - RETVOID; + return; #endif lCp->count++; @@ -161,7 +144,7 @@ RgSchRrCList *node; /* node to be added */ lCp->crnt = lCp->first; - RETVOID; + return; } node->next = lCp->first; @@ -169,7 +152,7 @@ RgSchRrCList *node; /* node to be added */ lCp->first->prev->next = node; lCp->first->prev = node; - RETVOID; + return; } /* end of rgSCHRrCListAdd2Tail */ /* @@ -187,17 +170,11 @@ RgSchRrCList *node; /* node to be added */ * File: rr_clist.c * */ -#ifdef ANSI RgSchRrCList *rgSCHRrCListDelFrm ( RgSchRrCListCp *lCp, /* list control pointer */ RgSchRrCList *node /* node to be removed */ ) -#else -RgSchRrCList *rgSCHRrCListDelFrm(lCp, node) -RgSchRrCListCp *lCp; /* list control pointer */ -RgSchRrCList *node; /* node to be removed */ -#endif { #ifdef ERRCHK @@ -265,23 +242,17 @@ RgSchRrCList *node; /* node to be removed */ * File: rr_clist.c * */ -#ifdef ANSI Void rgSCHRrCListInsrtAtCrnt ( RgSchRrCListCp *lCp, /* list control pointer */ RgSchRrCList *node /* node to be removed */ ) -#else -Void rgSCHRrCListInsrtAtCrnt(lCp, node) -RgSchRrCListCp *lCp; /* list control pointer */ -RgSchRrCList *node; /* node to be inserted */ -#endif { RgSchRrCList *crnt; #ifdef ERRCHK if (lCp == (RgSchRrCListCp *)NULLP) - RETVOID; + return; #endif crnt = lCp->crnt; @@ -294,7 +265,7 @@ RgSchRrCList *node; /* node to be inserted */ lCp->count++; - RETVOID; + return; } /********************************************************************30**