aboutsummaryrefslogtreecommitdiffstats
path: root/compat.c
blob: c123d0755fa9895b26d6880ca968ef7a6f8b5c66 (plain)
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
29
#include "config.h"
#include "compat.h"

#include <stdarg.h>
#include <stdio.h>

RCSID("$Id: compat.c,v 1.1.1.1 1999/02/02 23:29:39 shmit Exp $");

#ifdef NEED_SETPROCTITLE
void
setproctitle(const char *fmt, ...)
{
}
#endif

#ifdef NEED_SNPRINTF
int
snprintf(char *str, size_t size, const char *fmt, ...)
{
	va_list ap;
	int rc;

	va_start(ap, fmt);
	rc = vsprintf(str, fmt, ap);
	va_end(ap);

	return rc;
}
#endif