FACT++  1.0
static void error_handler ( int  conn_id,
int  severity,
int  errcode,
char *  reason 
)
static

Definition at line 120 of file dic.c.

References Curr_conn_id, dim_print_msg(), Error_conn_id, and Error_user_routine.

Referenced by handle_dns_info(), locate_service(), and request_dns_info().

121 {
122  int last_conn_id;
123 
125  {
126  Error_conn_id = conn_id;
127  last_conn_id = Curr_conn_id;
128  (Error_user_routine)(severity, errcode, reason);
129  Error_conn_id = 0;
130  Curr_conn_id = last_conn_id;
131  }
132  else
133  {
134  dim_print_msg(reason, severity);
135  if(severity == 3)
136  {
137  printf("Exiting!\n");
138  exit(2);
139  }
140  }
141 }
static void(* Error_user_routine)()=0
Definition: dic.c:52
static int Curr_conn_id
Definition: dic.c:54
void dim_print_msg(char *msg, int severity)
Definition: utilities.c:180
static int Error_conn_id
Definition: dic.c:53

+ Here is the call graph for this function:

+ Here is the caller graph for this function: