fix compilation with -Wmissing-field-initializers.

smoke _KERNEL_OPT where appropriate.
This commit is contained in:
pooka 2010-04-22 08:45:55 +00:00
parent 67e7c628fb
commit 0bacc51806
2 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: pseye.c,v 1.15 2009/12/06 21:40:31 dyoung Exp $ */
/* $NetBSD: pseye.c,v 1.16 2010/04/22 08:45:55 pooka Exp $ */
/*-
* Copyright (c) 2008 Jared D. McNeill <jmcneill@invisible.ca>
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pseye.c,v 1.15 2009/12/06 21:40:31 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: pseye.c,v 1.16 2010/04/22 08:45:55 pooka Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -848,7 +848,7 @@ static struct cfdata pseye_cfdata[] = {
.cf_flags = 0,
.cf_pspec = &uhubparent,
},
{ NULL }
{ NULL, NULL, 0, 0, NULL, 0, NULL }
};
static int

View File

@ -1,4 +1,4 @@
/* $NetBSD: uvideo.c,v 1.30 2009/11/12 20:01:15 dyoung Exp $ */
/* $NetBSD: uvideo.c,v 1.31 2010/04/22 08:45:55 pooka Exp $ */
/*
* Copyright (c) 2008 Patrick Mahoney
@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: uvideo.c,v 1.30 2009/11/12 20:01:15 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: uvideo.c,v 1.31 2010/04/22 08:45:55 pooka Exp $");
#ifdef _MODULE
#include <sys/module.h>
@ -75,7 +75,7 @@ __KERNEL_RCSID(0, "$NetBSD: uvideo.c,v 1.30 2009/11/12 20:01:15 dyoung Exp $");
#include <dev/usb/uvideoreg.h>
#if !defined(_MODULE)
#if defined(_KERNEL_OPT)
#include "opt_uvideo.h"
#endif
@ -2342,7 +2342,7 @@ static struct cfdata uvideo_cfdata[] = {
.cf_flags = 0,
.cf_pspec = &uhubparent,
},
{ NULL }
{ NULL, NULL, 0, 0, NULL, 0, NULL },
};
static int