]> andersk Git - moira.git/blobdiff - backup/dump_db.qc
fixed a cast
[moira.git] / backup / dump_db.qc
index 677cda0b580bce9b3fff94c9fd7329c39cef5631..b468ca16d3941e2efb5837c50a9a3c381284952b 100644 (file)
@@ -3,22 +3,13 @@
  *     $Author$
  *     $Header$
  *
- *     Copyright (C) 1987 by the Massachusetts Institute of Technology
+ *     (c) Copyright 1988 by the Massachusetts Institute of Technology.
+ *     For copying and distribution information, please see the file
+ *     <mit-copyright.h>.
  *
  *     This program dumps the SMS database to a series of output files
  * which can be later read back into SMS in the event of a crash.
  * 
- *     $Log$
- *     Revision 1.3  1988-08-16 16:25:30  mar
- *     con't put extra whitespace in backup files
- *
- * Revision 1.2  87/07/13  03:52:53  wesommer
- * Modified to pass lint, do better backups.
- * 
-Revision 1.1  87/07/11  19:51:05  wesommer
-Initial revision
-
- *
  */
 
 #ifndef lint
@@ -28,6 +19,8 @@ static char *rcsid_dump_db_c = "$Header$";
 #include <stdio.h>
 #include <sys/file.h>
 #include <ctype.h>
+#include <mit-copyright.h>
+#include "dump_db.h"
 
 /* putc without the line buffer hair */
 
@@ -54,15 +47,18 @@ main(argc, argv)
 
     bzero(act, 128);
 
-    act[':']=1;
+    act[SEP_CHAR]=1;
     act['\\']=1;
     act[127]=2;
     for (i=0; i<' '; i++) act[i]=2;
     
 ##  ingres sms 
-    
+##  set lockmode session where level = table
+##  begin transaction
+
     do_backups(prefix);
-    
+
+##  end transaction    
 ##  exit
     exit(0);
 }
@@ -107,7 +103,6 @@ dump_str(f, str)
            if (putc1(t,f) < 0) wpunt();
            t = (c&7) + '0';
            if (putc1(t,f) < 0) wpunt();
-           fprintf(stderr, "control character \\%03o\n", c);
            break;
            
        default:
@@ -177,16 +172,3 @@ char *strtrim(save)
     *t = '\0';
     return s;
 }
-
-
-
-/*
- * Local Variables:
- * mode: c
- * c-indent-level: 4
- * c-continued-statement-offset: 4
- * c-brace-offset: -4
- * c-argdecl-indent: 4
- * c-label-offset: -4
- * End:
- */
This page took 0.09926 seconds and 4 git commands to generate.