Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb const-ify struct ucom_methods pointer within uco...



details:   https://anonhg.NetBSD.org/src/rev/1949097e7758
branches:  trunk
changeset: 772129:1949097e7758
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Mon Dec 19 19:34:52 2011 +0000

description:
const-ify struct ucom_methods pointer within ucom(4).

diffstat:

 sys/dev/usb/ucom.c    |  6 +++---
 sys/dev/usb/ucomvar.h |  4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 1b359f47a7bb -r 1949097e7758 sys/dev/usb/ucom.c
--- a/sys/dev/usb/ucom.c        Mon Dec 19 19:30:12 2011 +0000
+++ b/sys/dev/usb/ucom.c        Mon Dec 19 19:34:52 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ucom.c,v 1.89 2011/12/19 19:30:12 jakllsch Exp $       */
+/*     $NetBSD: ucom.c,v 1.90 2011/12/19 19:34:52 jakllsch Exp $       */
 
 /*
  * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ucom.c,v 1.89 2011/12/19 19:30:12 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ucom.c,v 1.90 2011/12/19 19:34:52 jakllsch Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -129,7 +129,7 @@
 
        void                    *sc_si;
 
-       struct ucom_methods     *sc_methods;
+       const struct ucom_methods *sc_methods;
        void                    *sc_parent;
        int                     sc_portno;
 
diff -r 1b359f47a7bb -r 1949097e7758 sys/dev/usb/ucomvar.h
--- a/sys/dev/usb/ucomvar.h     Mon Dec 19 19:30:12 2011 +0000
+++ b/sys/dev/usb/ucomvar.h     Mon Dec 19 19:34:52 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ucomvar.h,v 1.19 2010/11/03 22:34:23 dyoung Exp $      */
+/*     $NetBSD: ucomvar.h,v 1.20 2011/12/19 19:34:52 jakllsch Exp $    */
 
 /*
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -97,7 +97,7 @@
        const char *info;       /* attach message */
        usbd_device_handle device;
        usbd_interface_handle iface;
-       struct ucom_methods *methods;
+       const struct ucom_methods *methods;
        void *arg;
 };
 



Home | Main Index | Thread Index | Old Index