summaryrefslogtreecommitdiff
path: root/bin/rcp
diff options
context:
space:
mode:
Diffstat (limited to 'bin/rcp')
-rw-r--r--bin/rcp/extern.h4
-rw-r--r--bin/rcp/util.c24
2 files changed, 3 insertions, 25 deletions
diff --git a/bin/rcp/extern.h b/bin/rcp/extern.h
index 69e6c2aa769..8e870efe62d 100644
--- a/bin/rcp/extern.h
+++ b/bin/rcp/extern.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: extern.h,v 1.6 2006/03/12 01:51:15 djm Exp $ */
+/* $OpenBSD: extern.h,v 1.7 2007/11/29 07:39:09 chl Exp $ */
/* $NetBSD: extern.h,v 1.2 1995/03/21 08:19:01 cgd Exp $ */
/*-
@@ -48,8 +48,6 @@ struct arglist {
};
void addargs(arglist *, char *, ...)
__attribute__((format(printf, 2, 3)));
-void replacearg(arglist *, u_int, char *, ...)
- __attribute__((format(printf, 3, 4)));
void freeargs(arglist *);
BUF *allocbuf(BUF *, int, int);
diff --git a/bin/rcp/util.c b/bin/rcp/util.c
index 80c44354c69..465ffc42c37 100644
--- a/bin/rcp/util.c
+++ b/bin/rcp/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.17 2007/10/17 20:10:44 chl Exp $ */
+/* $OpenBSD: util.c,v 1.18 2007/11/29 07:39:09 chl Exp $ */
/* $NetBSD: util.c,v 1.2 1995/03/21 08:19:08 cgd Exp $ */
/*-
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)util.c 8.2 (Berkeley) 4/2/94";
#else
-static const char rcsid[] = "$OpenBSD: util.c,v 1.17 2007/10/17 20:10:44 chl Exp $";
+static const char rcsid[] = "$OpenBSD: util.c,v 1.18 2007/11/29 07:39:09 chl Exp $";
#endif
#endif /* not lint */
@@ -233,26 +233,6 @@ addargs(arglist *args, char *fmt, ...)
}
void
-replacearg(arglist *args, u_int which, char *fmt, ...)
-{
- va_list ap;
- char *cp;
- int r;
-
- va_start(ap, fmt);
- r = vasprintf(&cp, fmt, ap);
- va_end(ap);
- if (r == -1)
- errx(1, "replacearg: argument too long");
-
- if (which >= args->num)
- errx(1, "replacearg: tried to replace invalid arg %d >= %d",
- which, args->num);
- free(args->list[which]);
- args->list[which] = cp;
-}
-
-void
freeargs(arglist *args)
{
u_int i;