Use NULL instead of 0.

This commit is contained in:
augustss 2000-02-08 18:45:27 +00:00
parent 3bc7ce8d31
commit e922214fb2
4 changed files with 10 additions and 10 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: uaudio.c,v 1.17 2000/02/02 13:18:45 augustss Exp $ */
/* $NetBSD: uaudio.c,v 1.18 2000/02/08 18:45:27 augustss Exp $ */
/*
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -2018,7 +2018,7 @@ uaudio_chan_pintr(xfer, priv, status)
if (status == USBD_CANCELLED)
return;
usbd_get_xfer_status(xfer, 0, 0, &count, 0);
usbd_get_xfer_status(xfer, NULL, NULL, &count, NULL);
DPRINTFN(5,("uaudio_chan_pintr: count=%d, transferred=%d\n",
count, ch->transferred));
#ifdef DIAGNOSTIC
@ -2109,7 +2109,7 @@ uaudio_chan_rintr(xfer, priv, status)
if (status == USBD_CANCELLED)
return;
usbd_get_xfer_status(xfer, 0, 0, &count, 0);
usbd_get_xfer_status(xfer, NULL, NULL, &count, NULL);
DPRINTFN(5,("uaudio_chan_rintr: count=%d, transferred=%d\n",
count, ch->transferred));
#ifdef DIAGNOSTIC

View File

@ -1,4 +1,4 @@
/* $NetBSD: ucom.c,v 1.14 2000/02/08 09:18:01 augustss Exp $ */
/* $NetBSD: ucom.c,v 1.15 2000/02/08 18:45:27 augustss Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -891,7 +891,7 @@ ucomwritecb(xfer, p, status)
return;
}
usbd_get_xfer_status(xfer, 0, 0, &cc, 0);
usbd_get_xfer_status(xfer, NULL, NULL, &cc, NULL);
DPRINTFN(5,("ucomwritecb: cc=%d\n", cc));
s = spltty();
@ -948,7 +948,7 @@ ucomreadcb(xfer, p, status)
return;
}
usbd_get_xfer_status(xfer, 0, (void **)&cp, &cc, 0);
usbd_get_xfer_status(xfer, NULL, (void **)&cp, &cc, NULL);
DPRINTFN(5,("ucomreadcb: got %d chars, tp=%p\n", cc, tp));
s = spltty();
/* Give characters to tty layer. */

View File

@ -1,4 +1,4 @@
/* $NetBSD: ugen.c,v 1.33 2000/02/02 13:20:59 augustss Exp $ */
/* $NetBSD: ugen.c,v 1.34 2000/02/08 18:45:27 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/ugen.c,v 1.26 1999/11/17 22:33:41 n_hibma Exp $ */
/*
@ -710,7 +710,7 @@ ugenintr(xfer, addr, status)
return;
}
usbd_get_xfer_status(xfer, 0, 0, &count, 0);
usbd_get_xfer_status(xfer, NULL, NULL, &count, NULL);
ibuf = sce->ibuf;
DPRINTFN(5, ("ugenintr: xfer=%p status=%d count=%d\n",

View File

@ -1,4 +1,4 @@
/* $NetBSD: usbdi_util.c,v 1.26 1999/11/28 22:49:53 augustss Exp $ */
/* $NetBSD: usbdi_util.c,v 1.27 2000/02/08 18:45:27 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/usbdi_util.c,v 1.14 1999/11/17 22:33:50 n_hibma Exp $ */
/*
@ -524,7 +524,7 @@ usbd_bulk_transfer(xfer, pipe, flags, timeout, buf, size, lbl)
usbd_abort_pipe(pipe);
return (USBD_INTERRUPTED);
}
usbd_get_xfer_status(xfer, 0, 0, size, &err);
usbd_get_xfer_status(xfer, NULL, NULL, size, &err);
DPRINTFN(1,("usbd_bulk_transfer: transferred %d\n", *size));
if (err) {
DPRINTF(("usbd_bulk_transfer: error=%d\n", err));