]> andersk Git - moira.git/blobdiff - dbck/dbck.qc
Used /bin/sh format instead of /bin/csh format, by accident.
[moira.git] / dbck / dbck.qc
index 3bcc7d4de96c4d68640ece205be94968f01e4c0e..5595702aa521627a777270b88c12e21a99f6d1f5 100644 (file)
@@ -1,6 +1,6 @@
 /* $Header$
  *
- * SMS database consistency checker
+ * Moira database consistency checker
  *
  *  (c) Copyright 1988 by the Massachusetts Institute of Technology.
  *  For copying and distribution information, please see the file
@@ -22,9 +22,10 @@ int mode = MODE_ASK;
 int fast = 0;
 int warn = 1;
 int abort = 0;
-struct hash *users, *machines, *clusters, *lists, *filesys, *nfsphys, *strings;
+struct hash *users, *machines, *clusters, *lists, *filesys, *nfsphys;
+struct hash *strings, *members;
 ##int dcmenable;
-struct save_queue *modtables;
+struct save_queue *modtables, *sq_create();
 int interrupt();
 
 
@@ -87,6 +88,8 @@ char **argv;
     if (debug)
       printf("Debug level is %d\n", debug);
 
+    setlinebuf(stdout);
+
     signal(SIGHUP, interrupt);
     signal(SIGQUIT, interrupt);
     signal(SIGINT, interrupt);
@@ -170,3 +173,13 @@ cleanup()
 ##  replace values (value = dcmenable) where values.name = "dcm_enable"
 ##  exit
 ##}
+
+
+out_of_mem(msg)
+char *msg;
+{
+    fprintf(stderr, "Out of memory while %s\n", msg);
+##  end transaction    
+    cleanup();
+    exit(1);
+}
This page took 0.039812 seconds and 4 git commands to generate.