]> andersk Git - moira.git/blobdiff - dbck/phase3.pc
second code style cleanup: void/void * usage, proper #includes. try to
[moira.git] / dbck / phase3.pc
index e78421bd0f16f21cd1b323f500a36e255fab739e..312dd8577cea2951dae4309909358ac11dc44fb0 100644 (file)
@@ -1,19 +1,25 @@
-/* $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);
 }
@@ -36,8 +42,10 @@ struct string *string_check(int id)
 }
 
 
-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);
@@ -51,15 +59,15 @@ unref_string_check(int id, struct string *s, int hint)
  *  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");
 
This page took 0.035339 seconds and 4 git commands to generate.