Procházet zdrojové kódy

u-a: Rename get_all_alternatives() to altdb_get_namelist()

This makes it clear we are referring to the filenames in the database
directory.
Guillem Jover před 15 roky
rodič
revize
31242e1aaa
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3 3
      utils/update-alternatives.c

+ 3 - 3
utils/update-alternatives.c

@@ -399,7 +399,7 @@ filter_altdir(const struct dirent *entry)
 }
 
 static int
-get_all_alternatives(struct dirent ***table)
+altdb_get_namelist(struct dirent ***table)
 {
 	int count;
 
@@ -480,7 +480,7 @@ config_all(void)
 	struct dirent **table;
 	int i, count;
 
-	count = get_all_alternatives(&table);
+	count = altdb_get_namelist(&table);
 	for (i = 0; i < count; i++) {
 		subcall(prog_path, "--config", table[i]->d_name, NULL);
 		printf("\n");
@@ -2204,7 +2204,7 @@ main(int argc, char **argv)
 	alt_map_obj = alternative_map_new(NULL, NULL);
 	alt_map_links = alternative_map_new(NULL, NULL);
 	alt_map_parent = alternative_map_new(NULL, NULL);
-	count = get_all_alternatives(&table);
+	count = altdb_get_namelist(&table);
 	for (i = 0; i < count; i++) {
 		struct slave_link *sl;
 		struct alternative *a_new = alternative_new(table[i]->d_name);