Skip to content
Snippets Groups Projects
Commit 7872d2c8 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel: Committed by Sergey Kosukhin
Browse files

Replace redundant count function.

parent cacc4c35
No related branches found
No related tags found
2 merge requests!34Version 2.2.0,!13Consolidation with CDI-PIO (develop)
......@@ -214,20 +214,10 @@ institutInqLongnamePtr(int instID)
return instituteptr ? instituteptr->longname : NULL;
}
static enum cdiApplyRet
activeInstitutes(int id, void *res, void *data)
{
(void) id;
if (res && ((institute_t *) res)->used) ++(*(int *) data);
return CDI_APPLY_GO_ON;
}
int
institutInqNumber(void)
{
int instNum = 0;
cdiResHFilterApply(&instituteOps, activeInstitutes, &instNum);
int instNum = (int) (reshCountType(&instituteOps));
return instNum;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment