Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Use NULL instead of 0.



details:   https://anonhg.NetBSD.org/src/rev/1d75fa01ae32
branches:  trunk
changeset: 481898:1d75fa01ae32
user:      augustss <augustss%NetBSD.org@localhost>
date:      Tue Feb 08 18:45:27 2000 +0000

description:
Use NULL instead of 0.

diffstat:

 sys/dev/usb/uaudio.c     |  6 +++---
 sys/dev/usb/ucom.c       |  6 +++---
 sys/dev/usb/ugen.c       |  4 ++--
 sys/dev/usb/usbdi_util.c |  4 ++--
 4 files changed, 10 insertions(+), 10 deletions(-)

diffs (90 lines):

diff -r 7a96560196bf -r 1d75fa01ae32 sys/dev/usb/uaudio.c
--- a/sys/dev/usb/uaudio.c      Tue Feb 08 18:40:51 2000 +0000
+++ b/sys/dev/usb/uaudio.c      Tue Feb 08 18:45:27 2000 +0000
@@ -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 @@
        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 @@
        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
diff -r 7a96560196bf -r 1d75fa01ae32 sys/dev/usb/ucom.c
--- a/sys/dev/usb/ucom.c        Tue Feb 08 18:40:51 2000 +0000
+++ b/sys/dev/usb/ucom.c        Tue Feb 08 18:45:27 2000 +0000
@@ -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 @@
                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 @@
                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. */
diff -r 7a96560196bf -r 1d75fa01ae32 sys/dev/usb/ugen.c
--- a/sys/dev/usb/ugen.c        Tue Feb 08 18:40:51 2000 +0000
+++ b/sys/dev/usb/ugen.c        Tue Feb 08 18:45:27 2000 +0000
@@ -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 @@
                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", 
diff -r 7a96560196bf -r 1d75fa01ae32 sys/dev/usb/usbdi_util.c
--- a/sys/dev/usb/usbdi_util.c  Tue Feb 08 18:40:51 2000 +0000
+++ b/sys/dev/usb/usbdi_util.c  Tue Feb 08 18:45:27 2000 +0000
@@ -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_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));



Home | Main Index | Thread Index | Old Index