summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/misc.h
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2020-01-24 23:54:41 +0000
committerDamien Miller <djm@cvs.openbsd.org>2020-01-24 23:54:41 +0000
commit670b1b16c374b38688a4805ac28e0ffb1be702c5 (patch)
tree18fec4151a4b7024c7c8fd346ec9b31431d11647 /usr.bin/ssh/misc.h
parent29981ecc3d0e1a683ba42811ac611ce0c7cf23a2 (diff)
add xextendf() to extend a string with a format (reallocating as
necessary). ok aja@ as part of a larger diff
Diffstat (limited to 'usr.bin/ssh/misc.h')
-rw-r--r--usr.bin/ssh/misc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/ssh/misc.h b/usr.bin/ssh/misc.h
index 94419f476c3..26bc9b7ec78 100644
--- a/usr.bin/ssh/misc.h
+++ b/usr.bin/ssh/misc.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: misc.h,v 1.83 2020/01/23 07:10:22 dtucker Exp $ */
+/* $OpenBSD: misc.h,v 1.84 2020/01/24 23:54:40 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -69,6 +69,8 @@ long convtime(const char *);
char *tilde_expand_filename(const char *, uid_t);
char *percent_expand(const char *, ...) __attribute__((__sentinel__));
char *tohex(const void *, size_t);
+void xextendf(char **s, const char *sep, const char *fmt, ...)
+ __attribute__((__format__ (printf, 3, 4))) __attribute__((__nonnull__ (3)));
void sanitise_stdfd(void);
void ms_subtract_diff(struct timeval *, int *);
void ms_to_timeval(struct timeval *, int);