summaryrefslogtreecommitdiffstats
path: root/src/util/check_error_db.c (plain)
blob: a6b7f51226995d549cc9ad00af27c33a0505691c
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "check_error_db.h"
#include "sqlinfoprint.h"
#include <stdlib.h>
extern struct sqlca sqlca;

void
check_error_db (const char *filename, const unsigned int linenum)
{
  if (sqlinfoprint ("DB Error", &sqlca, filename, linenum) == 1)
    exit (EXIT_FAILURE);

  return;
}

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.