diff options
author | Charles Longeau <chl@cvs.openbsd.org> | 2007-11-29 07:39:10 +0000 |
---|---|---|
committer | Charles Longeau <chl@cvs.openbsd.org> | 2007-11-29 07:39:10 +0000 |
commit | 2052a76b341bd769acbbc940d10ef057b91ed932 (patch) | |
tree | cb90c046f4b887305296821240bc1c58f8029da2 /bin/rcp | |
parent | d65e84ad15428b7563dca52e708ccbf2946289b8 (diff) |
remove unused function
from tobias@
ok millert@ tobias@
Diffstat (limited to 'bin/rcp')
-rw-r--r-- | bin/rcp/extern.h | 4 | ||||
-rw-r--r-- | bin/rcp/util.c | 24 |
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; |