]> andersk Git - moira.git/blobdiff - dbck/phase3.qc
add mk_cmds
[moira.git] / dbck / phase3.qc
index e5540f1e4e359222e2d252ad56784a4aaa7b3547..18a7f7ec01b3bd3630360dfbf97073af366d5cc9 100644 (file)
@@ -10,6 +10,8 @@
 
 #define NULL 0
 
+static char phase3_qc_rcsid[] = "$Header$";
+
 
 empty_list_check(id, l, hint)
 int id, hint;
@@ -54,7 +56,7 @@ noclu_mach_check(id, m, hint)
 int id, hint;
 struct machine *m;
 {
-    if (m->clucount == 0)
+    if (m->clucount == 0 && m->mach_id != 0)
       printf("Warning: machine %s is not in any clusters\n", m->name);
 }
 
@@ -63,11 +65,13 @@ phase3()
 ##{
     printf("Phase 3 - Finding unused objects\n");
 
-    dprintf("Checking machines...\n");
-    hash_step(machines, noclu_mach_check, NULL);
+    if (warn) {
+       dprintf("Checking machines...\n");
+       hash_step(machines, noclu_mach_check, NULL);
 
-    dprintf("Checking lists...\n");
-    hash_step(lists, empty_list_check, NULL);
+       dprintf("Checking lists...\n");
+       hash_step(lists, empty_list_check, NULL);
+    }
 
     dprintf("Checking strings...\n");
     hash_step(strings, unref_string_check, NULL);
This page took 0.032193 seconds and 4 git commands to generate.