aboutsummaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/util.c b/util.c
index fda3a37..75b97f0 100644
--- a/util.c
+++ b/util.c
@@ -84,30 +84,6 @@ u_exec(char *argstr)
warn("%s", s);
}
-char *
-u_argv(char * const *argv)
-{
- size_t siz = 0;
- int i;
- char *p;
-
- if (argv == 0)
- return NULL;
-
- for (i = 0; argv[i]; i++)
- siz += strlen(argv[i]) + 1;
- if (siz == 0)
- return NULL;
-
- p = xmalloc(siz);
- strlcpy(p, argv[0], siz);
- for (i = 1; argv[i]; i++) {
- strlcat(p, " ", siz);
- strlcat(p, argv[i], siz);
- }
- return p;
-}
-
static void
log_msg(const char *msg, va_list ap)
{