summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/misc.h
diff options
context:
space:
mode:
authormouring <mouring@cvs.openbsd.org>2001-05-08 19:45:26 +0000
committermouring <mouring@cvs.openbsd.org>2001-05-08 19:45:26 +0000
commit2f5b5a13ef7c9cd78b692e3ba00dd531eee0ac63 (patch)
tree96db33ef8c58371d9f696a4f5fb4cec4a565ac49 /usr.bin/ssh/misc.h
parentf4765ff369e62b14b2ea8503934cb7c672458033 (diff)
Use addargs() in sftp plus some clean up of addargs(). OK Markus
Diffstat (limited to 'usr.bin/ssh/misc.h')
-rw-r--r--usr.bin/ssh/misc.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/usr.bin/ssh/misc.h b/usr.bin/ssh/misc.h
index 7d819796fd7..16545ce660e 100644
--- a/usr.bin/ssh/misc.h
+++ b/usr.bin/ssh/misc.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: misc.h,v 1.5 2001/05/03 23:09:52 mouring Exp $ */
+/* $OpenBSD: misc.h,v 1.6 2001/05/08 19:45:24 mouring Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -32,3 +32,13 @@ int a2port(const char *s);
/* code from scp.c/rcp.c */
char *cleanhostname(char *host);
char *colon(char *cp);
+
+/* function to assist building execv() arguments */
+typedef struct arglist arglist;
+struct arglist {
+ char **list;
+ int num;
+ int nalloc;
+};
+
+void addargs(arglist *args, char *fmt, ...) __attribute__((format(printf, 2, 3)));