aboutsummaryrefslogtreecommitdiff
path: root/lib/errors/vwarnx.c
blob: 58a7bc6bd1490aa5c76c03cde4abd2263986a9ff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdarg.h>
#include <stdio.h>

#include "errors.h"

void
vwarnx(const char *fmt, va_list ap)
{
	fprintf(stderr, "%s: ", mlib_progname());
	vfprintf(stderr, fmt, ap);
	fputc('\n', stderr);
}