Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libossaudio appease gcc -Wuninitialized. some delint
details: https://anonhg.NetBSD.org/src/rev/8298587e89fe
branches: trunk
changeset: 581390:8298587e89fe
user: lukem <lukem%NetBSD.org@localhost>
date: Wed Jun 01 11:22:18 2005 +0000
description:
appease gcc -Wuninitialized. some delint
diffstat:
lib/libossaudio/ossaudio.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diffs (45 lines):
diff -r ec4f05e31f2d -r 8298587e89fe lib/libossaudio/ossaudio.c
--- a/lib/libossaudio/ossaudio.c Wed Jun 01 11:08:57 2005 +0000
+++ b/lib/libossaudio/ossaudio.c Wed Jun 01 11:22:18 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ossaudio.c,v 1.19 2004/11/18 14:02:42 kent Exp $ */
+/* $NetBSD: ossaudio.c,v 1.20 2005/06/01 11:22:18 lukem Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: ossaudio.c,v 1.19 2004/11/18 14:02:42 kent Exp $");
+__RCSID("$NetBSD: ossaudio.c,v 1.20 2005/06/01 11:22:18 lukem Exp $");
/*
* This is an OSS (Linux) sound API emulator.
@@ -96,6 +96,8 @@
int idat, idata;
int retval;
+ idat = 0;
+
switch (com) {
case SNDCTL_DSP_RESET:
retval = ioctl(fd, AUDIO_FLUSH, 0);
@@ -458,7 +460,8 @@
char names[NETBSD_MAXDEVS][MAX_AUDIO_DEV_LEN];
int enum2opaque[NETBSD_MAXDEVS];
u_long devmask, recmask, stereomask;
- u_long caps, source;
+ u_long caps;
+ int source;
};
static int
@@ -642,6 +645,7 @@
int retval;
int l, r, n, error, e;
+ idat = 0;
di = getdevinfo(fd);
if (di == 0)
return -1;
Home |
Main Index |
Thread Index |
Old Index