aboutsummaryrefslogtreecommitdiffstats
path: root/compat.c
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2022-03-09 21:10:26 -0500
committerBrian Cully <bjc@kublai.com>2022-03-09 21:37:48 -0500
commit720864f2a76d4ee3ed75cb99298b8e94c01f1b29 (patch)
tree7a163efe3d699725a9e9dd2c17aebaa6a6feadc7 /compat.c
downloadticra-main.tar.gz
ticra-main.zip
Here’s some old code of mine for a backup system from c. 2000.HEADmain
I used to really hate AMANDA.
Diffstat (limited to 'compat.c')
-rw-r--r--compat.c29
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