]> andersk Git - moira.git/blobdiff - backup/dumprest.pc
Command line printer manipulation client, and build goo.
[moira.git] / backup / dumprest.pc
index 501b38b81f01ebf99b37a7131182c4e6f993724d..cd44b316b6587c10e57bf2991c925016745decd0 100644 (file)
@@ -1,37 +1,35 @@
-/*
- *     $Source$
- *     $Author$
- *     $Header$
- *
- *  (c) Copyright 1988 by the Massachusetts Institute of Technology.
- *  For copying and distribution information, please see the file
- *  <mit-copyright.h>.
+/* $Id$
  *
+ * (c) Copyright 1988-1998 by the Massachusetts Institute of Technology.
+ * For copying and distribution information, please see the file
+ * <mit-copyright.h>.
  */
 
-#ifndef lint
-static char *rcsid_dumprest_qc = "$Header$";
-#endif lint
+#include <mit-copyright.h>
+#include <moira.h>
+#include "dump_db.h"
 
 #include <stdio.h>
-#include <mit-copyright.h>
 
-punt(msg)
-       char *msg;
+RCSID("$Header$");
+
+extern void sqlglm(char *, unsigned int *, unsigned int *);
+
+void punt(char *msg)
 {
-       perror(msg);
-       exit(1);
+  perror(msg);
+  exit(1);
 }
 
-dbmserr(void)
+void dbmserr(void)
 {
-    EXEC SQL BEGIN DECLARE SECTION; 
-    char err_msg[256];
-    EXEC SQL END DECLARE SECTION;
-    int bufsize=256, msglength=0;
-    sqlglm(err_msg, &bufsize, &msglength);
-    err_msg[msglength]=0;
-    fprintf(stderr, "Fatal SQL error:\n%s", err_msg);
-    exit(1);
+  EXEC SQL BEGIN DECLARE SECTION;
+  char err_msg[256];
+  EXEC SQL END DECLARE SECTION;
+  int bufsize = 256, msglength = 0;
+
+  sqlglm(err_msg, &bufsize, &msglength);
+  err_msg[msglength] = '\0';
+  fprintf(stderr, "Fatal SQL error:\n%s", err_msg);
+  exit(1);
 }
This page took 0.050558 seconds and 4 git commands to generate.