From bffca252549e33af7f9c2e6951988b7ad2f41852 Mon Sep 17 00:00:00 2001 From: tron Date: Wed, 28 Jun 2006 10:04:56 +0000 Subject: [PATCH] Actually initialize the "struct midi_info" in midi_getinfo(). Problem found by GCC 4.x. --- sys/dev/sequencer.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/dev/sequencer.c b/sys/dev/sequencer.c index db0c908e27cd..3456635edd07 100644 --- a/sys/dev/sequencer.c +++ b/sys/dev/sequencer.c @@ -1,4 +1,4 @@ -/* $NetBSD: sequencer.c,v 1.30 2005/12/11 12:20:53 christos Exp $ */ +/* $NetBSD: sequencer.c,v 1.31 2006/06/28 10:04:56 tron Exp $ */ /* * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: sequencer.c,v 1.30 2005/12/11 12:20:53 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sequencer.c,v 1.31 2006/06/28 10:04:56 tron Exp $"); #include "sequencer.h" @@ -1469,6 +1469,8 @@ midi_getinfo(dev, mi) dev_t dev; struct midi_info *mi; { + mi->name = "Dummy MIDI device"; + mi->props = 0; } int