Lines Matching refs:num_ids

44    int num_ids;                       /* ids stored */  member
52 int num_ids; /* ids stored */ member
328 if (lst->num_ids == MAX_ID_LIST_LEN) { in IdListHandler()
331 if (lst->num_ids == lst->max_ids) { in IdListHandler()
340 lst->Id[lst->num_ids++] = str_to_int64(row[0]); in IdListHandler()
349 id_list->num_ids = 0; in MakeIdList()
367 for (int i = 0; i < id_list->num_ids; i++) { in DeleteIdList()
384 if (name->num_ids == MAX_ID_LIST_LEN) { in NameListHandler()
387 if (name->num_ids == name->max_ids) { in NameListHandler()
396 name->name[name->num_ids++] = bstrdup(row[0]); in NameListHandler()
405 name_list->num_ids = 0; in MakeNameList()
421 for (int i=0; i < name_list->num_ids; i++) { in PrintNameList()
431 for (int i=0; i < name_list->num_ids; i++) { in FreeNameList()
434 name_list->num_ids = 0; in FreeNameList()
454 printf(_("Found %d duplicate Path records.\n"), name_list.num_ids); in eliminate_duplicate_paths()
456 if (name_list.num_ids && verbose && yes_no(_("Print them? (yes/no): "))) { in eliminate_duplicate_paths()
466 for (int i=0; i<name_list.num_ids; i++) { in eliminate_duplicate_paths()
479 printf(_("Found %d for: %s\n"), id_list.num_ids, name_list.name[i]); in eliminate_duplicate_paths()
484 for (int j=1; j<id_list.num_ids; j++) { in eliminate_duplicate_paths()
522 while (id_list.num_ids != 0) { in eliminate_orphaned_jobmedia_records()
523 printf(_("Found %d orphaned JobMedia records.\n"), id_list.num_ids); in eliminate_orphaned_jobmedia_records()
524 if (id_list.num_ids && verbose && yes_no(_("Print them? (yes/no): "))) { in eliminate_orphaned_jobmedia_records()
525 for (int i=0; i < id_list.num_ids; i++) { in eliminate_orphaned_jobmedia_records()
540 if (fix && id_list.num_ids > 0) { in eliminate_orphaned_jobmedia_records()
541 printf(_("Deleting %d orphaned JobMedia records.\n"), id_list.num_ids); in eliminate_orphaned_jobmedia_records()
570 while (id_list.num_ids != 0) { in eliminate_orphaned_file_records()
571 printf(_("Found %d orphaned File records.\n"), id_list.num_ids); in eliminate_orphaned_file_records()
572 if (name_list.num_ids && verbose && yes_no(_("Print them? (yes/no): "))) { in eliminate_orphaned_file_records()
573 for (int i=0; i < id_list.num_ids; i++) { in eliminate_orphaned_file_records()
587 if (fix && id_list.num_ids > 0) { in eliminate_orphaned_file_records()
588 printf(_("Deleting %d orphaned File records.\n"), id_list.num_ids); in eliminate_orphaned_file_records()
621 while (id_list.num_ids != 0) { in eliminate_orphaned_path_records()
622 printf(_("Found %d orphaned Path records.\n"), id_list.num_ids); in eliminate_orphaned_path_records()
624 if (id_list.num_ids && verbose && yes_no(_("Print them? (yes/no): "))) { in eliminate_orphaned_path_records()
625 for (int i=0; i < id_list.num_ids; i++) { in eliminate_orphaned_path_records()
636 if (fix && id_list.num_ids > 0) { in eliminate_orphaned_path_records()
637 printf(_("Deleting %d orphaned Path records.\n"), id_list.num_ids); in eliminate_orphaned_path_records()
664 printf(_("Found %d orphaned FileSet records.\n"), id_list.num_ids); in eliminate_orphaned_fileset_records()
666 if (id_list.num_ids && verbose && yes_no(_("Print them? (yes/no): "))) { in eliminate_orphaned_fileset_records()
667 for (int i=0; i < id_list.num_ids; i++) { in eliminate_orphaned_fileset_records()
680 if (fix && id_list.num_ids > 0) { in eliminate_orphaned_fileset_records()
681 printf(_("Deleting %d orphaned FileSet records.\n"), id_list.num_ids); in eliminate_orphaned_fileset_records()
710 printf(_("Found %d orphaned Client records.\n"), id_list.num_ids); in eliminate_orphaned_client_records()
711 if (id_list.num_ids && verbose && yes_no(_("Print them? (yes/no): "))) { in eliminate_orphaned_client_records()
712 for (int i=0; i < id_list.num_ids; i++) { in eliminate_orphaned_client_records()
725 if (fix && id_list.num_ids > 0) { in eliminate_orphaned_client_records()
726 printf(_("Deleting %d orphaned Client records.\n"), id_list.num_ids); in eliminate_orphaned_client_records()
755 printf(_("Found %d orphaned Job records.\n"), id_list.num_ids); in eliminate_orphaned_job_records()
757 if (id_list.num_ids && verbose && yes_no(_("Print them? (yes/no): "))) { in eliminate_orphaned_job_records()
758 for (int i=0; i < id_list.num_ids; i++) { in eliminate_orphaned_job_records()
771 if (fix && id_list.num_ids > 0) { in eliminate_orphaned_job_records()
772 printf(_("Deleting %d orphaned Job records.\n"), id_list.num_ids); in eliminate_orphaned_job_records()
798 printf(_("Found %d Admin Job records.\n"), id_list.num_ids); in eliminate_admin_records()
799 if (id_list.num_ids && verbose && yes_no(_("Print them? (yes/no): "))) { in eliminate_admin_records()
800 for (int i=0; i < id_list.num_ids; i++) { in eliminate_admin_records()
813 if (fix && id_list.num_ids > 0) { in eliminate_admin_records()
814 printf(_("Deleting %d Admin Job records.\n"), id_list.num_ids); in eliminate_admin_records()
834 printf(_("Found %d Restore Job records.\n"), id_list.num_ids); in eliminate_restore_records()
835 if (id_list.num_ids && verbose && yes_no(_("Print them? (yes/no): "))) { in eliminate_restore_records()
836 for (int i=0; i < id_list.num_ids; i++) { in eliminate_restore_records()
849 if (fix && id_list.num_ids > 0) { in eliminate_restore_records()
850 printf(_("Deleting %d Restore Job records.\n"), id_list.num_ids); in eliminate_restore_records()
871 printf(_("Found %d bad Filename records.\n"), id_list.num_ids); in repair_bad_filenames()
872 if (id_list.num_ids && verbose && yes_no(_("Print them? (yes/no): "))) { in repair_bad_filenames()
873 for (i=0; i < id_list.num_ids; i++) { in repair_bad_filenames()
887 if (fix && id_list.num_ids > 0) { in repair_bad_filenames()
890 printf(_("Reparing %d bad Filename records.\n"), id_list.num_ids); in repair_bad_filenames()
892 for (i=0; i < id_list.num_ids; i++) { in repair_bad_filenames()
941 printf(_("Found %d bad Path records.\n"), id_list.num_ids); in repair_bad_paths()
943 if (id_list.num_ids && verbose && yes_no(_("Print them? (yes/no): "))) { in repair_bad_paths()
944 for (i=0; i < id_list.num_ids; i++) { in repair_bad_paths()
957 if (fix && id_list.num_ids > 0) { in repair_bad_paths()
960 printf(_("Reparing %d bad Filename records.\n"), id_list.num_ids); in repair_bad_paths()
962 for (i=0; i < id_list.num_ids; i++) { in repair_bad_paths()