Adapt to change in args for falloc(). Reported by Hisashi T Fujinaka

on current-users.
This commit is contained in:
riz 2006-07-25 05:14:38 +00:00
parent 9eca1294f7
commit e0f4b4c3cf

View File

@ -1,4 +1,4 @@
/* $NetBSD: xenevt.c,v 1.9 2006/05/14 21:57:13 elad Exp $ */
/* $NetBSD: xenevt.c,v 1.10 2006/07/25 05:14:38 riz Exp $ */
/*
* Copyright (c) 2005 Manuel Bouyer.
@ -242,7 +242,7 @@ xenevtopen(dev_t dev, int flags, int mode, struct lwp *l)
switch(minor(dev)) {
case DEV_EVT:
/* falloc() will use the descriptor for us. */
if ((error = falloc(l->l_proc, &fp, &fd)) != 0)
if ((error = falloc(l, &fp, &fd)) != 0)
return error;
d = malloc(sizeof(*d), M_DEVBUF, M_WAITOK | M_ZERO);