[go: up one dir, main page]

File: error.c

package info (click to toggle)
diod 1.0.13-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 29,952 kB
  • sloc: ansic: 31,694; sh: 15,368; makefile: 347; perl: 80
file content (28 lines) | stat: -rw-r--r-- 472 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#if HAVE_CONFIG_H
#include "config.h"
#endif
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <stdarg.h>

#include "diod_log.h"

void
lsd_fatal_error (char *file, int line, char *mesg)
{
    msg_exit ("fatal error: %s: %s::%d", mesg, file, line);
}

void *
lsd_nomem_error (char *file, int line, char *mesg)
{
    msg ("out of memory: %s: %s::%d", mesg, file, line);
    return NULL;
}

/*
 * vi:tabstop=4 shiftwidth=4 expandtab
 */