summaryrefslogtreecommitdiff
path: root/openbsd-compat
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2016-02-17 13:37:09 +1100
committerDarren Tucker <dtucker@zip.com.au>2016-02-17 13:37:09 +1100
commit60d860e54b4f199e5e89963b1c086981309753cb (patch)
tree17d4d052a03b2b832e423573ffce07df7d029752 /openbsd-compat
parent2fee909c3cee2472a98b26eb82696297b81e0d38 (diff)
Rollback addition of va_start.
va_start was added in 0f754e29dd3760fc0b172c1220f18b753fb0957e, however it has the wrong number of args and it's not usable in non-variadic functions anyway so it breaks things (for example Solaris 2.6 as reported by Tom G. Christensen).i ok djm@
Diffstat (limited to 'openbsd-compat')
-rw-r--r--openbsd-compat/bsd-asprintf.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/openbsd-compat/bsd-asprintf.c b/openbsd-compat/bsd-asprintf.c
index db57acce9..3368195d4 100644
--- a/openbsd-compat/bsd-asprintf.c
+++ b/openbsd-compat/bsd-asprintf.c
@@ -47,7 +47,6 @@ vasprintf(char **str, const char *fmt, va_list ap)
47 char *string, *newstr; 47 char *string, *newstr;
48 size_t len; 48 size_t len;
49 49
50 va_start(ap);
51 VA_COPY(ap2, ap); 50 VA_COPY(ap2, ap);
52 if ((string = malloc(INIT_SZ)) == NULL) 51 if ((string = malloc(INIT_SZ)) == NULL)
53 goto fail; 52 goto fail;