diff options
| author | tnozaki <tnozaki@NetBSD.org> | 2006-10-04 13:51:59 +0000 |
|---|---|---|
| committer | tnozaki <tnozaki@NetBSD.org> | 2006-10-04 13:51:59 +0000 |
| commit | 44eb8f042ef477bf5ce93de2333be8e09390c692 (patch) | |
| tree | cb0d84b8392a571c71c27796d264a64b2abed3a6 /lib/libc/stdio | |
| parent | c72f004e7c4e9af6a3a8a1d5c5f0730a99a45194 (diff) | |
fix gcc -Werror -Wmissing-braces problem
mbstate_t(this is opaque object)'s initializer should be ``{ 0 }'',
so changed 1st field of union from character array to integer.
Diffstat (limited to 'lib/libc/stdio')
| -rw-r--r-- | lib/libc/stdio/findfp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/stdio/findfp.c b/lib/libc/stdio/findfp.c index 49a631999c7..7f59a1bff3b 100644 --- a/lib/libc/stdio/findfp.c +++ b/lib/libc/stdio/findfp.c @@ -1,4 +1,4 @@ -/* $NetBSD: findfp.c,v 1.20 2003/08/07 16:43:23 agc Exp $ */ +/* $NetBSD: findfp.c,v 1.21 2006/10/04 13:52:00 tnozaki Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)findfp.c 8.2 (Berkeley) 1/4/94"; #else -__RCSID("$NetBSD: findfp.c,v 1.20 2003/08/07 16:43:23 agc Exp $"); +__RCSID("$NetBSD: findfp.c,v 1.21 2006/10/04 13:52:00 tnozaki Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -70,7 +70,7 @@ static struct __sfileext usualext[FOPEN_MAX - 3]; static struct glue uglue = { 0, FOPEN_MAX - 3, usual }; #ifdef _REENTRANT -#define STDEXT { {0}, {{{0}}}, MUTEX_INITIALIZER, COND_INITIALIZER, NULL, 0, 0} +#define STDEXT { {0}, {{0}}, MUTEX_INITIALIZER, COND_INITIALIZER, NULL, 0, 0} struct __sfileext __sFext[3] = { STDEXT, STDEXT, STDEXT}; |
