Skip to content

Commit

Permalink
Merge pull request rsyslog#5490 from rgerhards/nitfixes
Browse files Browse the repository at this point in the history
cleanup: remove variables that are no longer used
  • Loading branch information
rgerhards authored Nov 15, 2024
2 parents 062680b + 2178201 commit ebdddad
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,20 +214,17 @@ rsRetVal parsSkipAfterChar(rsParsObj *pThis, char c)
rsRetVal parsSkipWhitespace(rsParsObj *pThis)
{
register unsigned char *pC;
int numSkipped;
DEFiRet;


rsCHECKVALIDOBJECT(pThis, OIDrsPars);

pC = rsCStrGetBufBeg(pThis->pCStr);

numSkipped = 0;
while(pThis->iCurrPos < rsCStrLen(pThis->pCStr)) {
if(!isspace((int)*(pC+pThis->iCurrPos)))
break;
++pThis->iCurrPos;
++numSkipped;
}

RETiRet;
Expand Down
4 changes: 0 additions & 4 deletions runtime/modules.c
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,6 @@ Load(uchar *const pModName, const sbool bConfLoad, struct nvlst *const lst)
cfgmodules_etry_t *pNew = NULL;
cfgmodules_etry_t *pLast = NULL;
uchar *pModDirCurr, *pModDirNext;
int iLoadCnt;
struct dlhandle_s *pHandle = NULL;
uchar pathBuf[PATH_MAX+1];
uchar *pPathBuf = pathBuf;
Expand Down Expand Up @@ -1156,7 +1155,6 @@ Load(uchar *const pModName, const sbool bConfLoad, struct nvlst *const lst)
pModDirCurr = (uchar *)((pModDir == NULL) ? _PATH_MODDIR : (char *)pModDir);
pModDirNext = NULL;
pModHdlr = NULL;
iLoadCnt = 0;
do { /* now build our load module name */
if(*pModName == '/' || *pModName == '.') {
if(lenPathBuf < PATHBUF_OVERHEAD) {
Expand Down Expand Up @@ -1241,8 +1239,6 @@ Load(uchar *const pModName, const sbool bConfLoad, struct nvlst *const lst)
}
}

iLoadCnt++;

} while(pModHdlr == NULL && *pModName != '/' && pModDirNext);

if(load_err_msg != NULL) {
Expand Down

0 comments on commit ebdddad

Please sign in to comment.