Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Change return type of readdisklabel() to const char *
details: https://anonhg.NetBSD.org/src/rev/6ac751c5fab2
branches: trunk
changeset: 546595:6ac751c5fab2
user: dsl <dsl%NetBSD.org@localhost>
date: Fri May 02 08:45:10 2003 +0000
description:
Change return type of readdisklabel() to const char *
I hope I've found all the correct places!
diffstat:
sys/arch/algor/algor/disksubr.c | 6 +++---
sys/arch/alpha/alpha/disksubr.c | 6 +++---
sys/arch/amd64/amd64/disksubr.c | 4 ++--
sys/arch/amiga/amiga/disksubr.c | 6 +++---
sys/arch/arc/arc/disksubr.c | 4 ++--
sys/arch/arm/arm/disksubr.c | 4 ++--
sys/arch/atari/atari/disksubr.c | 4 ++--
sys/arch/bebox/bebox/disksubr.c | 4 ++--
sys/arch/cobalt/cobalt/disksubr.c | 4 ++--
sys/arch/evbmips/evbmips/disksubr.c | 4 ++--
sys/arch/evbppc/evbppc/disksubr.c | 4 ++--
sys/arch/hp300/dev/rd.c | 6 +++---
sys/arch/hp300/dev/sd.c | 6 +++---
sys/arch/hp300/hp300/disksubr.c | 6 +++---
sys/arch/hp700/hp700/disksubr.c | 4 ++--
sys/arch/hpc/hpc/disksubr.c | 4 ++--
sys/arch/i386/i386/disksubr.c | 6 +++---
sys/arch/luna68k/luna68k/disksubr.c | 4 ++--
sys/arch/mac68k/mac68k/disksubr.c | 4 ++--
sys/arch/mac68k/obio/iwm_fd.c | 4 ++--
sys/arch/macppc/macppc/disksubr.c | 4 ++--
sys/arch/mipsco/mipsco/disksubr.c | 4 ++--
sys/arch/mvme68k/mvme68k/disksubr.c | 4 ++--
sys/arch/mvmeppc/mvmeppc/disksubr.c | 4 ++--
sys/arch/news68k/news68k/disksubr.c | 4 ++--
sys/arch/newsmips/newsmips/disksubr.c | 4 ++--
sys/arch/next68k/next68k/disksubr.c | 4 ++--
sys/arch/ofppc/ofppc/disksubr.c | 4 ++--
sys/arch/pc532/pc532/disksubr.c | 4 ++--
sys/arch/playstation2/playstation2/disksubr.c | 4 ++--
sys/arch/pmax/pmax/disksubr.c | 4 ++--
sys/arch/pmppc/pmppc/disksubr.c | 4 ++--
sys/arch/prep/prep/disksubr.c | 4 ++--
sys/arch/sandpoint/sandpoint/disksubr.c | 4 ++--
sys/arch/sbmips/sbmips/disksubr.c | 4 ++--
sys/arch/sgimips/sgimips/disksubr.c | 4 ++--
sys/arch/sh3/sh3/disksubr.c | 4 ++--
sys/arch/sparc/sparc/disksubr.c | 4 ++--
sys/arch/sparc64/sparc64/disksubr.c | 4 ++--
sys/arch/sun3/dev/xd.c | 4 ++--
sys/arch/sun3/dev/xy.c | 4 ++--
sys/arch/sun3/sun3/disksubr.c | 4 ++--
sys/arch/sun68k/sun68k/disksubr.c | 4 ++--
sys/arch/vax/mba/hp.c | 4 ++--
sys/arch/vax/vax/disksubr.c | 4 ++--
sys/arch/vax/vsa/hdc9224.c | 4 ++--
sys/arch/x68k/x68k/disksubr.c | 4 ++--
sys/dev/ata/wd.c | 6 +++---
sys/dev/ccd.c | 6 +++---
sys/dev/dksubr.c | 4 ++--
sys/dev/mca/ed_mca.c | 6 +++---
sys/dev/mscp/mscp_disk.c | 6 +++---
sys/dev/ofw/ofdisk.c | 6 +++---
sys/dev/qbus/rl.c | 6 +++---
sys/dev/raidframe/rf_netbsdkintf.c | 6 +++---
sys/dev/scsipi/cd.c | 6 +++---
sys/dev/scsipi/sd.c | 6 +++---
sys/dev/vme/xd.c | 6 +++---
sys/dev/vme/xy.c | 6 +++---
sys/dev/vnd.c | 6 +++---
sys/sys/disklabel.h | 6 +++---
61 files changed, 142 insertions(+), 142 deletions(-)
diffs (truncated from 1271 to 300 lines):
diff -r 2d82629fecf3 -r 6ac751c5fab2 sys/arch/algor/algor/disksubr.c
--- a/sys/arch/algor/algor/disksubr.c Fri May 02 08:35:42 2003 +0000
+++ b/sys/arch/algor/algor/disksubr.c Fri May 02 08:45:10 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: disksubr.c,v 1.6 2002/03/05 09:40:38 simonb Exp $ */
+/* $NetBSD: disksubr.c,v 1.7 2003/05/02 08:45:24 dsl Exp $ */
/*
* Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
@@ -29,7 +29,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.6 2002/03/05 09:40:38 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.7 2003/05/02 08:45:24 dsl Exp $");
#include <sys/param.h>
#include <sys/buf.h>
@@ -50,7 +50,7 @@
* (e.g., sector size) must be filled in before calling us.
* Returns null on success and an error string on failure.
*/
-char *
+const char *
readdisklabel(dev_t dev, void (*strat)(struct buf *), struct disklabel *lp,
struct cpu_disklabel *clp)
{
diff -r 2d82629fecf3 -r 6ac751c5fab2 sys/arch/alpha/alpha/disksubr.c
--- a/sys/arch/alpha/alpha/disksubr.c Fri May 02 08:35:42 2003 +0000
+++ b/sys/arch/alpha/alpha/disksubr.c Fri May 02 08:45:10 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: disksubr.c,v 1.25 2002/03/05 09:40:39 simonb Exp $ */
+/* $NetBSD: disksubr.c,v 1.26 2003/05/02 08:45:23 dsl Exp $ */
/*
* Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
@@ -29,7 +29,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.25 2002/03/05 09:40:39 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.26 2003/05/02 08:45:23 dsl Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -52,7 +52,7 @@
* (e.g., sector size) must be filled in before calling us.
* Returns null on success and an error string on failure.
*/
-char *
+const char *
readdisklabel(dev, strat, lp, clp)
dev_t dev;
void (*strat) __P((struct buf *));
diff -r 2d82629fecf3 -r 6ac751c5fab2 sys/arch/amd64/amd64/disksubr.c
--- a/sys/arch/amd64/amd64/disksubr.c Fri May 02 08:35:42 2003 +0000
+++ b/sys/arch/amd64/amd64/disksubr.c Fri May 02 08:45:10 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: disksubr.c,v 1.1 2003/04/26 18:39:27 fvdl Exp $ */
+/* $NetBSD: disksubr.c,v 1.2 2003/05/02 08:45:14 dsl Exp $ */
/*
* Copyright (c) 1982, 1986, 1988 Regents of the University of California.
@@ -128,7 +128,7 @@
*
* Returns null on success and an error string on failure.
*/
-char *
+const char *
readdisklabel(dev, strat, lp, osdep)
dev_t dev;
void (*strat) __P((struct buf *));
diff -r 2d82629fecf3 -r 6ac751c5fab2 sys/arch/amiga/amiga/disksubr.c
--- a/sys/arch/amiga/amiga/disksubr.c Fri May 02 08:35:42 2003 +0000
+++ b/sys/arch/amiga/amiga/disksubr.c Fri May 02 08:45:10 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: disksubr.c,v 1.42 2003/01/06 12:46:07 wiz Exp $ */
+/* $NetBSD: disksubr.c,v 1.43 2003/05/02 08:45:22 dsl Exp $ */
/*
* Copyright (c) 1994 Christian E. Hopps
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.42 2003/01/06 12:46:07 wiz Exp $");
+__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.43 2003/05/02 08:45:22 dsl Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -98,7 +98,7 @@
* (e.g., sector size) must be filled in before calling us.
* Returns null on success and an error string on failure.
*/
-char *
+const char *
readdisklabel(dev, strat, lp, clp)
dev_t dev;
void (*strat)(struct buf *);
diff -r 2d82629fecf3 -r 6ac751c5fab2 sys/arch/arc/arc/disksubr.c
--- a/sys/arch/arc/arc/disksubr.c Fri May 02 08:35:42 2003 +0000
+++ b/sys/arch/arc/arc/disksubr.c Fri May 02 08:45:10 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: disksubr.c,v 1.14 2003/04/16 15:00:59 bouyer Exp $ */
+/* $NetBSD: disksubr.c,v 1.15 2003/05/02 08:45:22 dsl Exp $ */
/* $OpenBSD: disksubr.c,v 1.14 1997/05/08 00:14:29 deraadt Exp $ */
/* NetBSD: disksubr.c,v 1.40 1999/05/06 15:45:51 christos Exp */
@@ -145,7 +145,7 @@
*
* Returns null on success and an error string on failure.
*/
-char *
+const char *
readdisklabel(dev, strat, lp, osdep)
dev_t dev;
void (*strat) __P((struct buf *));
diff -r 2d82629fecf3 -r 6ac751c5fab2 sys/arch/arm/arm/disksubr.c
--- a/sys/arch/arm/arm/disksubr.c Fri May 02 08:35:42 2003 +0000
+++ b/sys/arch/arm/arm/disksubr.c Fri May 02 08:45:10 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: disksubr.c,v 1.5 2003/04/30 19:05:21 thorpej Exp $ */
+/* $NetBSD: disksubr.c,v 1.6 2003/05/02 08:45:22 dsl Exp $ */
/*
* Copyright (c) 1998 Christopher G. Demetriou. All rights reserved.
@@ -91,7 +91,7 @@
* Returns null on success and an error string on failure.
*/
-char *
+const char *
readdisklabel(dev, strat, lp, osdep)
dev_t dev;
void (*strat) __P((struct buf *));
diff -r 2d82629fecf3 -r 6ac751c5fab2 sys/arch/atari/atari/disksubr.c
--- a/sys/arch/atari/atari/disksubr.c Fri May 02 08:35:42 2003 +0000
+++ b/sys/arch/atari/atari/disksubr.c Fri May 02 08:45:10 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: disksubr.c,v 1.26 2003/04/03 17:49:22 he Exp $ */
+/* $NetBSD: disksubr.c,v 1.27 2003/05/02 08:45:21 dsl Exp $ */
/*
* Copyright (c) 1995 Leo Weppelman.
@@ -130,7 +130,7 @@
* (e.g. sector size) must be filled in before calling us.
* Returns NULL on success and an error string on failure.
*/
-char *
+const char *
readdisklabel(dev, strat, lp, clp)
dev_t dev;
void (*strat)(struct buf *);
diff -r 2d82629fecf3 -r 6ac751c5fab2 sys/arch/bebox/bebox/disksubr.c
--- a/sys/arch/bebox/bebox/disksubr.c Fri May 02 08:35:42 2003 +0000
+++ b/sys/arch/bebox/bebox/disksubr.c Fri May 02 08:45:10 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: disksubr.c,v 1.10 2003/04/16 15:01:01 bouyer Exp $ */
+/* $NetBSD: disksubr.c,v 1.11 2003/05/02 08:45:21 dsl Exp $ */
/*
* Copyright (c) 1982, 1986, 1988 Regents of the University of California.
@@ -124,7 +124,7 @@
*
* Returns null on success and an error string on failure.
*/
-char *
+const char *
readdisklabel(dev, strat, lp, osdep)
dev_t dev;
void (*strat) __P((struct buf *));
diff -r 2d82629fecf3 -r 6ac751c5fab2 sys/arch/cobalt/cobalt/disksubr.c
--- a/sys/arch/cobalt/cobalt/disksubr.c Fri May 02 08:35:42 2003 +0000
+++ b/sys/arch/cobalt/cobalt/disksubr.c Fri May 02 08:45:10 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: disksubr.c,v 1.8 2003/04/16 15:01:01 bouyer Exp $ */
+/* $NetBSD: disksubr.c,v 1.9 2003/05/02 08:45:21 dsl Exp $ */
/*
* Copyright (c) 1982, 1986, 1988 Regents of the University of California.
@@ -95,7 +95,7 @@
*
* Returns null on success and an error string on failure.
*/
-char *
+const char *
readdisklabel(dev, strat, lp, osdep)
dev_t dev;
void (*strat) __P((struct buf *));
diff -r 2d82629fecf3 -r 6ac751c5fab2 sys/arch/evbmips/evbmips/disksubr.c
--- a/sys/arch/evbmips/evbmips/disksubr.c Fri May 02 08:35:42 2003 +0000
+++ b/sys/arch/evbmips/evbmips/disksubr.c Fri May 02 08:45:10 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: disksubr.c,v 1.3 2003/04/16 15:01:01 bouyer Exp $ */
+/* $NetBSD: disksubr.c,v 1.4 2003/05/02 08:45:21 dsl Exp $ */
/*
* Copyright (c) 1982, 1986, 1988 Regents of the University of California.
@@ -47,7 +47,7 @@
* (e.g., sector size) must be filled in before calling us.
* Returns null on success and an error string on failure.
*/
-char *
+const char *
readdisklabel(dev_t dev, void (*strat)(struct buf *), struct disklabel *lp,
struct cpu_disklabel *clp)
{
diff -r 2d82629fecf3 -r 6ac751c5fab2 sys/arch/evbppc/evbppc/disksubr.c
--- a/sys/arch/evbppc/evbppc/disksubr.c Fri May 02 08:35:42 2003 +0000
+++ b/sys/arch/evbppc/evbppc/disksubr.c Fri May 02 08:45:10 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: disksubr.c,v 1.2 2003/04/16 15:01:02 bouyer Exp $ */
+/* $NetBSD: disksubr.c,v 1.3 2003/05/02 08:45:19 dsl Exp $ */
/*
* Copyright (c) 1982, 1986, 1988 Regents of the University of California.
@@ -56,7 +56,7 @@
*
* Returns null on success and an error string on failure.
*/
-char *
+const char *
readdisklabel(dev_t dev, void (*strat)(struct buf *), struct disklabel *lp,
struct cpu_disklabel *osdep)
{
diff -r 2d82629fecf3 -r 6ac751c5fab2 sys/arch/hp300/dev/rd.c
--- a/sys/arch/hp300/dev/rd.c Fri May 02 08:35:42 2003 +0000
+++ b/sys/arch/hp300/dev/rd.c Fri May 02 08:45:10 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rd.c,v 1.56 2003/02/14 06:55:17 gmcgarry Exp $ */
+/* $NetBSD: rd.c,v 1.57 2003/05/02 08:45:13 dsl Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -83,7 +83,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rd.c,v 1.56 2003/02/14 06:55:17 gmcgarry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rd.c,v 1.57 2003/05/02 08:45:13 dsl Exp $");
#include "opt_useleds.h"
#include "rnd.h"
@@ -544,7 +544,7 @@
struct rd_softc *rs = rd_cd.cd_devs[unit];
struct disklabel *lp = rs->sc_dkdev.dk_label;
struct partition *pi;
- char *msg;
+ const char *msg;
/*
* Set some default values to use while reading the label
diff -r 2d82629fecf3 -r 6ac751c5fab2 sys/arch/hp300/dev/sd.c
--- a/sys/arch/hp300/dev/sd.c Fri May 02 08:35:42 2003 +0000
+++ b/sys/arch/hp300/dev/sd.c Fri May 02 08:45:10 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sd.c,v 1.59 2003/02/25 20:35:31 thorpej Exp $ */
+/* $NetBSD: sd.c,v 1.60 2003/05/02 08:45:13 dsl Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -79,7 +79,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sd.c,v 1.59 2003/02/25 20:35:31 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sd.c,v 1.60 2003/05/02 08:45:13 dsl Exp $");
#include "rnd.h"
#include "opt_useleds.h"
@@ -425,7 +425,7 @@
struct sd_softc *sc = sd_cd.cd_devs[unit];
struct disklabel *lp = sc->sc_dkdev.dk_label;
struct partition *pi;
- char *msg;
+ const char *msg;
#ifdef COMPAT_NOLABEL
int usedefault = 1;
diff -r 2d82629fecf3 -r 6ac751c5fab2 sys/arch/hp300/hp300/disksubr.c
--- a/sys/arch/hp300/hp300/disksubr.c Fri May 02 08:35:42 2003 +0000
+++ b/sys/arch/hp300/hp300/disksubr.c Fri May 02 08:45:10 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: disksubr.c,v 1.14 2002/03/15 05:55:37 gmcgarry Exp $ */
+/* $NetBSD: disksubr.c,v 1.15 2003/05/02 08:45:20 dsl Exp $ */
/*
* Copyright (c) 1982, 1986, 1988, 1993
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.14 2002/03/15 05:55:37 gmcgarry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.15 2003/05/02 08:45:20 dsl Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -58,7 +58,7 @@
* filled in before calling us. Returns null on success and an error
* string on failure.
Home |
Main Index |
Thread Index |
Old Index