aboutsummaryrefslogtreecommitdiff
path: root/lib/errors/vwarnx.c
blob: 72d8fa70e386be7263219212f984c76724737278 (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: ", progname());
	vfprintf(stderr, fmt, ap);
	fputc('\n', stderr);
}