-/* $Header$
+/* $Id$
*
- * (c) Copyright 1988 by the Massachusetts Institute of Technology.
- * For copying and distribution information, please see the file
- * <mit-copyright.h>.
+ * (c) Copyright 1988-1998 by the Massachusetts Institute of Technology.
+ * For copying and distribution information, please see the file
+ * <mit-copyright.h>.
*/
#include <mit-copyright.h>
-#include <stdio.h>
+#include <moira.h>
#include "dbck.h"
-static char phase3_qc_rcsid[] = "$Header$";
+#include <stdio.h>
+
+RCSID("$Header$");
+void empty_list_check(int id, void *list, void *hint);
+void unref_string_check(int id, void *string, void *hint);
+void noclu_mach_check(int id, void *machine, void *hint);
-empty_list_check(int id, struct list *l, int hint)
+void empty_list_check(int id, void *list, void *hint)
{
+ struct list *l = list;
if (l->members == 0 && l->list_id != 0)
printf("Warning: List %s is empty\n", l->name);
}
}
-unref_string_check(int id, struct string *s, int hint)
+void unref_string_check(int id, void *string, void *hint)
{
+ struct string *s = string;
+
if (s->refc == 0)
{
printf("Unreferenced string %s id %d\n", s->name, id);
* servers in the Athena Computing Environment, has been extended to
* manage all hosts in the MIT.EDU domain (but not subdomains).
*/
-#ifndef ATHENA
-noclu_mach_check(int id, struct machine *m, int hint)
+void noclu_mach_check(int id, void *machine, void *hint)
{
+ struct machine *m = machine;
+
if (m->clucount == 0 && m->mach_id != 0)
printf("Warning: machine %s is not in any clusters\n", m->name);
}
-#endif
-phase3(void)
+void phase3(void)
{
printf("Phase 3 - Finding unused objects\n");