search for: ce3aa76

Displaying 2 results from an estimated 2 matches for "ce3aa76".

Did you mean: 2c73aa76
2016 Feb 01
0
[klibc:master] Make asprintf() a simple wrapper around vasprintf()
...bytes (on x86-64) by making asprintf() a typical stdarg wrapper function. Signed-off-by: H. Peter Anvin <hpa at zytor.com> --- usr/klibc/asprintf.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/usr/klibc/asprintf.c b/usr/klibc/asprintf.c index a3f5f00..ce3aa76 100644 --- a/usr/klibc/asprintf.c +++ b/usr/klibc/asprintf.c @@ -8,22 +8,13 @@ int asprintf(char **bufp, const char *format, ...) { - va_list ap, ap1; + va_list ap; int rv; int bytes; char *p; va_start(ap, format); - va_copy(ap1, ap); - - bytes = vsnprintf(NULL, 0, format, ap1) + 1; -...
2019 Jan 18
0
[klibc:master] remove unused variables
...le.com> Link: https://www.zytor.com/pipermail/klibc/2018-February/003977.html Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/klibc/asprintf.c | 2 -- usr/utils/readlink.c | 1 - 2 files changed, 3 deletions(-) diff --git a/usr/klibc/asprintf.c b/usr/klibc/asprintf.c index ce3aa76..42f3aa2 100644 --- a/usr/klibc/asprintf.c +++ b/usr/klibc/asprintf.c @@ -10,8 +10,6 @@ int asprintf(char **bufp, const char *format, ...) { va_list ap; int rv; - int bytes; - char *p; va_start(ap, format); rv = vasprintf(bufp, format, ap); diff --git a/usr/utils/readlink.c b/usr/utils/r...