Subject: Re: const fall-out
To: None <current-users@netbsd.org>
From: Patrick Welche <prlw1@newn.cam.ac.uk>
List: current-users
Date: 06/01/2005 19:31:57
--uZ3hkaAS1mZxFaxD
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Wed, Jun 01, 2005 at 06:19:42PM +0100, Patrick Welche wrote:
> Just spotted some trivial const fallout..
.. and a little more if anyone's interested..
Cheers,
Patrick
--uZ3hkaAS1mZxFaxD
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=constpat
Index: sl811hs.c
===================================================================
RCS file: /cvsroot/src/sys/dev/ic/sl811hs.c,v
retrieving revision 1.5
diff -u -r1.5 sl811hs.c
--- sl811hs.c 27 Feb 2005 00:27:02 -0000 1.5
+++ sl811hs.c 1 Jun 2005 18:30:57 -0000
@@ -85,7 +85,7 @@
static usbd_xfer_handle slhci_allocx(struct usbd_bus *);
static void slhci_freex(struct usbd_bus *, usbd_xfer_handle);
-static int slhci_str(usb_string_descriptor_t *, int, char *);
+static int slhci_str(usb_string_descriptor_t *, int, const char *);
static usbd_status slhci_root_ctrl_transfer(usbd_xfer_handle);
static usbd_status slhci_root_ctrl_start(usbd_xfer_handle);
@@ -153,7 +153,7 @@
/* XXX: sync with argument */
-static char *sltypestr [] = {
+static const char *sltypestr [] = {
"SL11H/T",
"SL811HS/T",
};
@@ -682,7 +682,7 @@
};
static int
-slhci_str(usb_string_descriptor_t *p, int l, char *s)
+slhci_str(usb_string_descriptor_t *p, int l, const char *s)
{
int i;
--uZ3hkaAS1mZxFaxD--