diff options
author | Brian Cully <bjc@kublai.com> | 2022-03-09 21:10:26 -0500 |
---|---|---|
committer | Brian Cully <bjc@kublai.com> | 2022-03-09 21:37:48 -0500 |
commit | 720864f2a76d4ee3ed75cb99298b8e94c01f1b29 (patch) | |
tree | 7a163efe3d699725a9e9dd2c17aebaa6a6feadc7 /compat.c | |
download | ticra-720864f2a76d4ee3ed75cb99298b8e94c01f1b29.tar.gz ticra-720864f2a76d4ee3ed75cb99298b8e94c01f1b29.zip |
I used to really hate AMANDA.
Diffstat (limited to 'compat.c')
-rw-r--r-- | compat.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/compat.c b/compat.c new file mode 100644 index 0000000..c123d07 --- /dev/null +++ b/compat.c @@ -0,0 +1,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 |