]> andersk Git - moira.git/blame - backup/dumprest.pc
eliminate use of the `register' keyword: let the compiler decide
[moira.git] / backup / dumprest.pc
CommitLineData
d77bf7b9 1/*
2 * $Source$
3 * $Author$
4 * $Header$
5 *
6 * (c) Copyright 1988 by the Massachusetts Institute of Technology.
7 * For copying and distribution information, please see the file
8 * <mit-copyright.h>.
9 *
10 */
11
12#ifndef lint
13static char *rcsid_dumprest_qc = "$Header$";
14#endif lint
15
16#include <stdio.h>
d77bf7b9 17#include <mit-copyright.h>
18
5eaef520 19int punt(char *msg)
d77bf7b9 20{
5eaef520 21 perror(msg);
22 exit(1);
d77bf7b9 23}
b4188632 24
5eaef520 25int dbmserr(void)
b4188632 26{
5eaef520 27 EXEC SQL BEGIN DECLARE SECTION;
28 char err_msg[256];
29 EXEC SQL END DECLARE SECTION;
30 int bufsize = 256, msglength = 0;
31
32 sqlglm(err_msg, &bufsize, &msglength);
33 err_msg[msglength] = '\0';
34 fprintf(stderr, "Fatal SQL error:\n%s", err_msg);
35 exit(1);
b4188632 36}
This page took 0.097585 seconds and 5 git commands to generate.