Lines Matching defs:ndeps
191 static int add_dep(int *ndeps, char ***depsp, deventry_t *deventry);
2394 * int *ndeps ptr to current number of deps
2398 * int *ndeps ptr to updated no of deps
2405 add_dep(int *ndeps, char ***depsp, deventry_t *deventry)
2409 *ndeps += 1;
2410 deps_new = realloc(*depsp, ((*ndeps) + 1) * sizeof (char *));
2417 deps_new[(*ndeps-1)] = deventry->devname;
2418 deps_new[(*ndeps)] = NULL;
2441 int ndeps = 0;
2457 if (add_dep(&ndeps, &deps, dependent) < 0)
2461 if (ndeps == 0) {