Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/dev - Add const.



details:   https://anonhg.NetBSD.org/src/rev/f49a58b05868
branches:  trunk
changeset: 581719:f49a58b05868
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Jun 04 04:34:12 2005 +0000

description:
- Add const.
- Remove parameter names from prototype declarations.

diffstat:

 sys/arch/sparc/dev/fd.c |  34 +++++++++++++++++-----------------
 1 files changed, 17 insertions(+), 17 deletions(-)

diffs (73 lines):

diff -r 33950f9d0dbc -r f49a58b05868 sys/arch/sparc/dev/fd.c
--- a/sys/arch/sparc/dev/fd.c   Sat Jun 04 04:32:11 2005 +0000
+++ b/sys/arch/sparc/dev/fd.c   Sat Jun 04 04:34:12 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fd.c,v 1.116 2004/10/28 07:07:38 yamt Exp $    */
+/*     $NetBSD: fd.c,v 1.117 2005/06/04 04:34:12 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -108,7 +108,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.116 2004/10/28 07:07:38 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.117 2005/06/04 04:34:12 tsutsui Exp $");
 
 #include "opt_ddb.h"
 #include "opt_md.h"
@@ -253,7 +253,7 @@
        int     rate;           /* transfer speed code */
        int     fillbyte;       /* format fill byte */
        int     interleave;     /* interleave factor (formatting) */
-       char    *name;
+       const char *name;
 };
 
 /* The order of entries in the following table is important -- BEWARE! */
@@ -330,23 +330,23 @@
 struct dkdriver fddkdriver = { fdstrategy };
 
 struct fd_type *fd_nvtotype __P((char *, int, int));
-void   fd_set_motor __P((struct fdc_softc *fdc));
-void   fd_motor_off __P((void *arg));
-void   fd_motor_on __P((void *arg));
-int    fdcresult __P((struct fdc_softc *fdc));
-int    fdc_wrfifo __P((struct fdc_softc *fdc, u_char x));
-void   fdcstart __P((struct fdc_softc *fdc));
-void   fdcstatus __P((struct fdc_softc *fdc, char *s));
-void   fdc_reset __P((struct fdc_softc *fdc));
-int    fdc_diskchange __P((struct fdc_softc *fdc));
-void   fdctimeout __P((void *arg));
-void   fdcpseudointr __P((void *arg));
+void   fd_set_motor __P((struct fdc_softc *));
+void   fd_motor_off __P((void *));
+void   fd_motor_on __P((void *));
+int    fdcresult __P((struct fdc_softc *));
+int    fdc_wrfifo __P((struct fdc_softc *, u_char));
+void   fdcstart __P((struct fdc_softc *));
+void   fdcstatus __P((struct fdc_softc *, const char *));
+void   fdc_reset __P((struct fdc_softc *));
+int    fdc_diskchange __P((struct fdc_softc *));
+void   fdctimeout __P((void *));
+void   fdcpseudointr __P((void *));
 int    fdc_c_hwintr __P((void *));
 void   fdchwintr __P((void));
 void   fdcswintr __P((void *));
 int    fdcstate __P((struct fdc_softc *));
-void   fdcretry __P((struct fdc_softc *fdc));
-void   fdfinish __P((struct fd_softc *fd, struct buf *bp));
+void   fdcretry __P((struct fdc_softc *));
+void   fdfinish __P((struct fd_softc *, struct buf *));
 int    fdformat __P((dev_t, struct ne7_fd_formb *, struct proc *));
 void   fd_do_eject __P((struct fd_softc *));
 void   fd_mountroot_hook __P((struct device *));
@@ -1235,7 +1235,7 @@
 void
 fdcstatus(fdc, s)
        struct fdc_softc *fdc;
-       char *s;
+       const char *s;
 {
        struct fd_softc *fd = fdc->sc_drives.tqh_first;
        int n;



Home | Main Index | Thread Index | Old Index