Deleted Added
full compact
31c31
< __FBSDID("$FreeBSD: head/sbin/hastd/subr.c 218214 2011-02-03 10:37:44Z pjd $");
---
> __FBSDID("$FreeBSD: head/sbin/hastd/subr.c 219815 2011-03-21 08:36:50Z pjd $");
40a41,43
> #include <stdarg.h>
> #include <stdio.h>
> #include <string.h>
48a52,72
> vsnprlcat(char *str, size_t size, const char *fmt, va_list ap)
> {
> size_t len;
>
> len = strlen(str);
> return (vsnprintf(str + len, size - len, fmt, ap));
> }
>
> int
> snprlcat(char *str, size_t size, const char *fmt, ...)
> {
> va_list ap;
> int result;
>
> va_start(ap, fmt);
> result = vsnprlcat(str, size, fmt, ap);
> va_end(ap);
> return (result);
> }
>
> int