Source-Changes-HG archive

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

[src/trunk]: src/sys constify diskerr().



details:   https://anonhg.NetBSD.org/src/rev/ed5728c9d623
branches:  trunk
changeset: 533365:ed5728c9d623
user:      yamt <yamt%NetBSD.org@localhost>
date:      Fri Jun 28 16:37:20 2002 +0000

description:
constify diskerr().

diffstat:

 sys/kern/subr_disk.c |  8 ++++----
 sys/sys/disklabel.h  |  6 +++---
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (49 lines):

diff -r 8c171f9c8e87 -r ed5728c9d623 sys/kern/subr_disk.c
--- a/sys/kern/subr_disk.c      Fri Jun 28 16:27:14 2002 +0000
+++ b/sys/kern/subr_disk.c      Fri Jun 28 16:37:20 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_disk.c,v 1.37 2002/02/16 02:11:43 enami Exp $     */
+/*     $NetBSD: subr_disk.c,v 1.38 2002/06/28 16:37:21 yamt Exp $      */
 
 /*-
  * Copyright (c) 1996, 1997, 1999, 2000 The NetBSD Foundation, Inc.
@@ -78,7 +78,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_disk.c,v 1.37 2002/02/16 02:11:43 enami Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_disk.c,v 1.38 2002/06/28 16:37:21 yamt Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -335,8 +335,8 @@
  * or addlog, respectively.  There is no trailing space.
  */
 void
-diskerr(struct buf *bp, char *dname, char *what, int pri, int blkdone,
-    struct disklabel *lp)
+diskerr(const struct buf *bp, const char *dname, const char *what, int pri,
+    int blkdone, const struct disklabel *lp)
 {
        int unit = DISKUNIT(bp->b_dev), part = DISKPART(bp->b_dev);
        void (*pr)(const char *, ...);
diff -r 8c171f9c8e87 -r ed5728c9d623 sys/sys/disklabel.h
--- a/sys/sys/disklabel.h       Fri Jun 28 16:27:14 2002 +0000
+++ b/sys/sys/disklabel.h       Fri Jun 28 16:37:20 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: disklabel.h,v 1.71 2002/05/27 16:36:37 drochner Exp $  */
+/*     $NetBSD: disklabel.h,v 1.72 2002/06/28 16:37:20 yamt Exp $      */
 
 /*
  * Copyright (c) 1987, 1988, 1993
@@ -479,8 +479,8 @@
 #ifdef _KERNEL
 struct buf_queue;
 
-void    diskerr
-           __P((struct buf *, char *, char *, int, int, struct disklabel *));
+void    diskerr __P((const struct buf *, const char *, const char *, int,
+           int, const struct disklabel *));
 void    disksort_cylinder __P((struct buf_queue *, struct buf *));
 void    disksort_blkno __P((struct buf_queue *, struct buf *));
 void    disksort_tail __P((struct buf_queue *, struct buf *));



Home | Main Index | Thread Index | Old Index