am e120cba3
: Merge "Cherrypick upstream OpenBSD\'s vfwprintf.c revision 1.11."
* commit 'e120cba31df5249b720579312e799bd1c65f8e3d': Cherrypick upstream OpenBSD's vfwprintf.c revision 1.11.
This commit is contained in:
commit
8c5d317041
@ -714,7 +714,6 @@ LOCAL_CFLAGS := \
|
|||||||
$(libc_common_cflags) \
|
$(libc_common_cflags) \
|
||||||
-Wno-sign-compare -Wno-uninitialized -Wno-unused-parameter \
|
-Wno-sign-compare -Wno-uninitialized -Wno-unused-parameter \
|
||||||
-Werror \
|
-Werror \
|
||||||
-Wno-error=unused-but-set-variable \
|
|
||||||
-I$(LOCAL_PATH)/upstream-openbsd/android/include \
|
-I$(LOCAL_PATH)/upstream-openbsd/android/include \
|
||||||
-I$(LOCAL_PATH)/upstream-openbsd/lib/libc/include \
|
-I$(LOCAL_PATH)/upstream-openbsd/lib/libc/include \
|
||||||
-I$(LOCAL_PATH)/upstream-openbsd/lib/libc/gdtoa/ \
|
-I$(LOCAL_PATH)/upstream-openbsd/lib/libc/gdtoa/ \
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: vfwprintf.c,v 1.10 2014/05/03 12:36:45 deraadt Exp $ */
|
/* $OpenBSD: vfwprintf.c,v 1.11 2014/06/04 07:45:25 stsp Exp $ */
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1990 The Regents of the University of California.
|
* Copyright (c) 1990 The Regents of the University of California.
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
@ -324,9 +324,6 @@ __vfwprintf(FILE * __restrict fp, const wchar_t * __restrict fmt0, __va_list ap)
|
|||||||
int realsz; /* field size expanded by dprec */
|
int realsz; /* field size expanded by dprec */
|
||||||
int size; /* size of converted field or string */
|
int size; /* size of converted field or string */
|
||||||
const char *xdigs; /* digits for %[xX] conversion */
|
const char *xdigs; /* digits for %[xX] conversion */
|
||||||
#define NIOV 8
|
|
||||||
struct __suio uio; /* output information: summary */
|
|
||||||
struct __siov iov[NIOV];/* ... and individual io vectors */
|
|
||||||
wchar_t buf[BUF]; /* buffer with space for digits of uintmax_t */
|
wchar_t buf[BUF]; /* buffer with space for digits of uintmax_t */
|
||||||
wchar_t ox[2]; /* space for 0x; ox[1] is either x, X, or \0 */
|
wchar_t ox[2]; /* space for 0x; ox[1] is either x, X, or \0 */
|
||||||
union arg *argtable; /* args, built due to positional arg */
|
union arg *argtable; /* args, built due to positional arg */
|
||||||
@ -463,9 +460,6 @@ __vfwprintf(FILE * __restrict fp, const wchar_t * __restrict fmt0, __va_list ap)
|
|||||||
argtable = NULL;
|
argtable = NULL;
|
||||||
nextarg = 1;
|
nextarg = 1;
|
||||||
va_copy(orgap, ap);
|
va_copy(orgap, ap);
|
||||||
uio.uio_iov = iov;
|
|
||||||
uio.uio_resid = 0;
|
|
||||||
uio.uio_iovcnt = 0;
|
|
||||||
ret = 0;
|
ret = 0;
|
||||||
convbuf = NULL;
|
convbuf = NULL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user