Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/citrus Use C99-style init in _CITRUS_PROP_HINT_END ...



details:   https://anonhg.NetBSD.org/src/rev/4bc2637ee772
branches:  trunk
changeset: 765251:4bc2637ee772
user:      joerg <joerg%NetBSD.org@localhost>
date:      Mon May 23 14:52:32 2011 +0000

description:
Use C99-style init in _CITRUS_PROP_HINT_END to avoid warnings for
uninitialised type field.

diffstat:

 lib/libc/citrus/citrus_prop.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r c1d9bb2183e6 -r 4bc2637ee772 lib/libc/citrus/citrus_prop.h
--- a/lib/libc/citrus/citrus_prop.h     Mon May 23 14:52:31 2011 +0000
+++ b/lib/libc/citrus/citrus_prop.h     Mon May 23 14:52:32 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: citrus_prop.h,v 1.4 2011/03/30 08:22:01 jruoho Exp $ */
+/* $NetBSD: citrus_prop.h,v 1.5 2011/05/23 14:52:32 joerg Exp $ */
 
 /*-
  * Copyright (c)2006 Citrus Project,
@@ -81,7 +81,7 @@
 #define _CITRUS_PROP_HINT_NUM(name, cb) \
        { name, _CITRUS_PROP_NUM, { .num = { cb } } }
 #define _CITRUS_PROP_HINT_END \
-       { NULL }
+       { .name = NULL }
 
 __BEGIN_DECLS
 int _citrus_prop_parse_variable(const _citrus_prop_hint_t * __restrict,



Home | Main Index | Thread Index | Old Index