Un-__P, ANSIfy, KNF.

This commit is contained in:
bjh21 2002-06-16 12:33:41 +00:00
parent feccadb213
commit 1ee77efc62
1 changed files with 12 additions and 15 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: sysbeep_vidc.c,v 1.3 2002/03/10 15:47:44 bjh21 Exp $ */
/* $NetBSD: sysbeep_vidc.c,v 1.4 2002/06/16 12:33:41 bjh21 Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -38,7 +38,7 @@
#include <sys/param.h>
__KERNEL_RCSID(0, "$NetBSD: sysbeep_vidc.c,v 1.3 2002/03/10 15:47:44 bjh21 Exp $");
__KERNEL_RCSID(0, "$NetBSD: sysbeep_vidc.c,v 1.4 2002/06/16 12:33:41 bjh21 Exp $");
#include <sys/systm.h>
#include <sys/device.h>
@ -51,11 +51,11 @@ __KERNEL_RCSID(0, "$NetBSD: sysbeep_vidc.c,v 1.3 2002/03/10 15:47:44 bjh21 Exp $
#include "lmcaudio.h"
/* Prototypes */
int sysbeep_vidc_match __P((struct device *parent, struct cfdata *cf, void *aux));
void sysbeep_vidc_attach __P((struct device *parent, struct device *self, void *aux));
void sysbeep __P((int pitch, int period));
int sysbeep_vidc_match(struct device *, struct cfdata *, void *);
void sysbeep_vidc_attach(struct device *, struct device *, void *);
void sysbeep(int, int);
void lmcaudio_beep_generate __P((void));
void lmcaudio_beep_generate(void);
/* device attach structure */
struct cfattach sysbeep_vidc_ca = {
@ -63,26 +63,23 @@ struct cfattach sysbeep_vidc_ca = {
};
int
sysbeep_vidc_match(parent, match, aux)
struct device *parent;
struct cfdata *match;
void *aux;
sysbeep_vidc_match(struct device *parent, struct cfdata *match, void *aux)
{
return (1); /* XXX */
}
void
sysbeep_vidc_attach(parent, self, aux)
struct device *parent, *self;
void *aux;
sysbeep_vidc_attach(struct device *parent, struct device *self, void *aux)
{
printf("\n");
}
void
sysbeep(pitch, period)
int pitch, period;
sysbeep(int pitch, int period)
{
#if NVIDCAUDIO > 0
vidcaudio_beep_generate();
#elif NLMCAUDIO > 0