Debian Codegraph @

liblsd/error.c

raw
1 #if HAVE_CONFIG_H
2 #include "config.h"
3 #endif
4 #include <stdio.h>
5 #include <string.h>
6 #include <errno.h>
7 #include <stdlib.h>
8 #include <stdarg.h>
9
10 #include "diod_log.h"
11
12 void
13 lsd_fatal_error (char *file, int line, char *mesg)
14 {
15 msg_exit ("fatal error: %s: %s::%d", mesg, file, line);
16 }
17
18 void *
19 lsd_nomem_error (char *file, int line, char *mesg)
20 {
21 msg ("out of memory: %s: %s::%d", mesg, file, line);
22 return NULL;
23 }
24
25 /*
26 * vi:tabstop=4 shiftwidth=4 expandtab
27 */
28