1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

Fix a warning that's been bugging me for ages.

This commit is contained in:
Peter Wemm 1998-10-11 10:29:49 +00:00
parent 68e3a08de1
commit 7532a55a62
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=40216

View File

@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: biosdisk.c,v 1.12 1998/10/09 07:11:19 msmith Exp $
* $Id: biosdisk.c,v 1.13 1998/10/11 10:01:55 peter Exp $
*/
/*
@ -43,6 +43,8 @@
#include <sys/diskslice.h>
#include <sys/reboot.h>
#include <stdarg.h>
#include <bootstrap.h>
#include <btxv86.h>
#include "libi386.h"
@ -101,7 +103,7 @@ static int bd_int13probe(struct bdinfo *bd);
static int bd_init(void);
static int bd_strategy(void *devdata, int flag, daddr_t dblk, size_t size, void *buf, size_t *rsize);
static int bd_open(struct open_file *f, void *vdev);
static int bd_open(struct open_file *f, ...);
static int bd_close(struct open_file *f);
struct devsw biosdisk = {
@ -208,12 +210,16 @@ bd_int13probe(struct bdinfo *bd)
* slice before it?)
*/
static int
bd_open(struct open_file *f, void *vdev)
bd_open(struct open_file *f, ...)
{
struct i386_devdesc *dev = (struct i386_devdesc *)vdev;
va_list ap;
struct i386_devdesc *dev;
struct open_disk *od;
int error;
va_start(ap, f);
dev = va_arg(ap, struct i386_devdesc *);
va_end(ap);
if ((error = bd_opendisk(&od, dev)))
return(error);