Fix uninitialized variable warnings.

This commit is contained in:
christos 2003-10-25 21:31:43 +00:00
parent a1fdc1db7a
commit b132a6334c
2 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: cmpci.c,v 1.19 2003/10/25 18:31:11 christos Exp $ */
/* $NetBSD: cmpci.c,v 1.20 2003/10/25 21:31:43 christos Exp $ */
/*
* Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: cmpci.c,v 1.19 2003/10/25 18:31:11 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: cmpci.c,v 1.20 2003/10/25 21:31:43 christos Exp $");
#if defined(AUDIO_DEBUG) || defined(DEBUG)
#define DPRINTF(x) if (cmpcidebug) printf x
@ -1253,7 +1253,7 @@ cmpci_set_mixer_gain(sc, port)
struct cmpci_softc *sc;
int port;
{
int src;
int src = 0; /* XXX: gcc */
int bits, mask;
switch (port) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: emuxki.c,v 1.27 2003/10/25 18:31:11 christos Exp $ */
/* $NetBSD: emuxki.c,v 1.28 2003/10/25 21:31:43 christos Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -56,7 +56,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: emuxki.c,v 1.27 2003/10/25 18:31:11 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: emuxki.c,v 1.28 2003/10/25 21:31:43 christos Exp $");
#include <sys/param.h>
#include <sys/device.h>
@ -1356,7 +1356,7 @@ static int
emuxki_voice_set_stereo(struct emuxki_voice *voice, u_int8_t stereo)
{
int error;
emuxki_recsrc_t source = NULL; /* XXX: gcc */
emuxki_recsrc_t source = 0; /* XXX: gcc */
struct emuxki_chanparms_fxsend fxsend;
if (! (voice->use & EMU_VOICE_USE_PLAY))
@ -1409,7 +1409,7 @@ static int
emuxki_voice_set_audioparms(struct emuxki_voice *voice, u_int8_t stereo,
u_int8_t b16, u_int32_t srate)
{
int error;
int error = 0;
if (voice->stereo == stereo && voice->b16 == b16 &&
voice->sample_rate == srate)