summaryrefslogtreecommitdiff
path: root/error.c
blob: 4944ff473fd1f60972efb9ecf2b84a042913620b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "error.h"

#include <stdio.h>
#include <stdlib.h>

void fatal_error(const char *msg)
{
	perror(msg);
	exit(-1);
}

void warning(const char *msg)
{
	fprintf(stderr, "WARNING: %s\n", msg);
}