Skip to content

Commit 8dd744e

Browse files
author
jtc
committed
Add const qualifier to mopts table
1 parent de1cf06 commit 8dd744e

File tree

13 files changed

+39
-39
lines changed

13 files changed

+39
-39
lines changed

sbin/mount_ados/mount_ados.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: mount_ados.c,v 1.4 1995/03/18 14:57:10 cgd Exp $ */
1+
/* $NetBSD: mount_ados.c,v 1.5 1996/04/13 01:30:59 jtc Exp $ */
22

33
/*
44
* Copyright (c) 1994 Christopher G. Demetriou
@@ -31,7 +31,7 @@
3131
*/
3232

3333
#ifndef lint
34-
static char rcsid[] = "$NetBSD: mount_ados.c,v 1.4 1995/03/18 14:57:10 cgd Exp $";
34+
static char rcsid[] = "$NetBSD: mount_ados.c,v 1.5 1996/04/13 01:30:59 jtc Exp $";
3535
#endif /* not lint */
3636

3737
#include <sys/cdefs.h>
@@ -49,7 +49,7 @@ static char rcsid[] = "$NetBSD: mount_ados.c,v 1.4 1995/03/18 14:57:10 cgd Exp $
4949

5050
#include "mntopts.h"
5151

52-
struct mntopt mopts[] = {
52+
const struct mntopt mopts[] = {
5353
MOPT_STDOPTS,
5454
{ NULL }
5555
};

sbin/mount_cd9660/mount_cd9660.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: mount_cd9660.c,v 1.2 1995/03/18 14:57:15 cgd Exp $ */
1+
/* $NetBSD: mount_cd9660.c,v 1.3 1996/04/13 01:31:08 jtc Exp $ */
22

33
/*
44
* Copyright (c) 1992, 1993, 1994
@@ -48,7 +48,7 @@ static char copyright[] =
4848
#if 0
4949
static char sccsid[] = "@(#)mount_cd9660.c 8.4 (Berkeley) 3/27/94";
5050
#else
51-
static char rcsid[] = "$NetBSD: mount_cd9660.c,v 1.2 1995/03/18 14:57:15 cgd Exp $";
51+
static char rcsid[] = "$NetBSD: mount_cd9660.c,v 1.3 1996/04/13 01:31:08 jtc Exp $";
5252
#endif
5353
#endif /* not lint */
5454

@@ -64,7 +64,7 @@ static char rcsid[] = "$NetBSD: mount_cd9660.c,v 1.2 1995/03/18 14:57:15 cgd Exp
6464

6565
#include "mntopts.h"
6666

67-
struct mntopt mopts[] = {
67+
const struct mntopt mopts[] = {
6868
MOPT_STDOPTS,
6969
MOPT_UPDATE,
7070
{ NULL }

sbin/mount_fdesc/mount_fdesc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: mount_fdesc.c,v 1.6 1995/03/18 14:57:20 cgd Exp $ */
1+
/* $NetBSD: mount_fdesc.c,v 1.7 1996/04/13 01:31:15 jtc Exp $ */
22

33
/*
44
* Copyright (c) 1990, 1992 Jan-Simon Pendry
@@ -47,7 +47,7 @@ char copyright[] =
4747
#if 0
4848
static char sccsid[] = "@(#)mount_fdesc.c 8.2 (Berkeley) 3/27/94";
4949
#else
50-
static char rcsid[] = "$NetBSD: mount_fdesc.c,v 1.6 1995/03/18 14:57:20 cgd Exp $";
50+
static char rcsid[] = "$NetBSD: mount_fdesc.c,v 1.7 1996/04/13 01:31:15 jtc Exp $";
5151
#endif
5252
#endif /* not lint */
5353

@@ -62,7 +62,7 @@ static char rcsid[] = "$NetBSD: mount_fdesc.c,v 1.6 1995/03/18 14:57:20 cgd Exp
6262

6363
#include "mntopts.h"
6464

65-
struct mntopt mopts[] = {
65+
const struct mntopt mopts[] = {
6666
MOPT_STDOPTS,
6767
{ NULL }
6868
};

sbin/mount_ffs/mount_ffs.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: mount_ffs.c,v 1.2 1995/11/11 23:02:28 mycroft Exp $ */
1+
/* $NetBSD: mount_ffs.c,v 1.3 1996/04/13 01:31:19 jtc Exp $ */
22

33
/*-
44
* Copyright (c) 1993, 1994
@@ -43,7 +43,7 @@ static char copyright[] =
4343
#if 0
4444
static char sccsid[] = "@(#)mount_ufs.c 8.2 (Berkeley) 3/27/94";
4545
#else
46-
static char rcsid[] = "$NetBSD: mount_ffs.c,v 1.2 1995/11/11 23:02:28 mycroft Exp $";
46+
static char rcsid[] = "$NetBSD: mount_ffs.c,v 1.3 1996/04/13 01:31:19 jtc Exp $";
4747
#endif
4848
#endif /* not lint */
4949

@@ -61,7 +61,7 @@ static char rcsid[] = "$NetBSD: mount_ffs.c,v 1.2 1995/11/11 23:02:28 mycroft Ex
6161

6262
void ffs_usage __P((void));
6363

64-
static struct mntopt mopts[] = {
64+
static const struct mntopt mopts[] = {
6565
MOPT_STDOPTS,
6666
MOPT_ASYNC,
6767
MOPT_SYNC,

sbin/mount_kernfs/mount_kernfs.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: mount_kernfs.c,v 1.6 1995/03/18 14:57:27 cgd Exp $ */
1+
/* $NetBSD: mount_kernfs.c,v 1.7 1996/04/13 01:31:24 jtc Exp $ */
22

33
/*
44
* Copyright (c) 1990, 1992 Jan-Simon Pendry
@@ -47,7 +47,7 @@ char copyright[] =
4747
#if 0
4848
static char sccsid[] = "@(#)mount_kernfs.c 8.2 (Berkeley) 3/27/94";
4949
#else
50-
static char rcsid[] = "$NetBSD: mount_kernfs.c,v 1.6 1995/03/18 14:57:27 cgd Exp $";
50+
static char rcsid[] = "$NetBSD: mount_kernfs.c,v 1.7 1996/04/13 01:31:24 jtc Exp $";
5151
#endif
5252
#endif /* not lint */
5353

@@ -62,7 +62,7 @@ static char rcsid[] = "$NetBSD: mount_kernfs.c,v 1.6 1995/03/18 14:57:27 cgd Exp
6262

6363
#include "mntopts.h"
6464

65-
struct mntopt mopts[] = {
65+
struct const mntopt mopts[] = {
6666
MOPT_STDOPTS,
6767
{ NULL }
6868
};

sbin/mount_lfs/mount_lfs.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: mount_lfs.c,v 1.2 1995/03/18 14:57:32 cgd Exp $ */
1+
/* $NetBSD: mount_lfs.c,v 1.3 1996/04/13 01:31:30 jtc Exp $ */
22

33
/*-
44
* Copyright (c) 1993, 1994
@@ -43,7 +43,7 @@ static char copyright[] =
4343
#if 0
4444
static char sccsid[] = "@(#)mount_lfs.c 8.3 (Berkeley) 3/27/94";
4545
#else
46-
static char rcsid[] = "$NetBSD: mount_lfs.c,v 1.2 1995/03/18 14:57:32 cgd Exp $";
46+
static char rcsid[] = "$NetBSD: mount_lfs.c,v 1.3 1996/04/13 01:31:30 jtc Exp $";
4747
#endif
4848
#endif /* not lint */
4949

@@ -59,7 +59,7 @@ static char rcsid[] = "$NetBSD: mount_lfs.c,v 1.2 1995/03/18 14:57:32 cgd Exp $"
5959
#include "mntopts.h"
6060
#include "pathnames.h"
6161

62-
struct mntopt mopts[] = {
62+
struct const mntopt mopts[] = {
6363
MOPT_STDOPTS,
6464
MOPT_UPDATE,
6565
{ NULL }

sbin/mount_msdos/mount_msdos.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: mount_msdos.c,v 1.12 1996/01/19 21:14:46 leo Exp $ */
1+
/* $NetBSD: mount_msdos.c,v 1.13 1996/04/13 01:31:35 jtc Exp $ */
22

33
/*
44
* Copyright (c) 1994 Christopher G. Demetriou
@@ -31,7 +31,7 @@
3131
*/
3232

3333
#ifndef lint
34-
static char rcsid[] = "$NetBSD: mount_msdos.c,v 1.12 1996/01/19 21:14:46 leo Exp $";
34+
static char rcsid[] = "$NetBSD: mount_msdos.c,v 1.13 1996/04/13 01:31:35 jtc Exp $";
3535
#endif /* not lint */
3636

3737
#include <sys/cdefs.h>
@@ -49,7 +49,7 @@ static char rcsid[] = "$NetBSD: mount_msdos.c,v 1.12 1996/01/19 21:14:46 leo Exp
4949

5050
#include "mntopts.h"
5151

52-
struct mntopt mopts[] = {
52+
struct const mntopt mopts[] = {
5353
MOPT_STDOPTS,
5454
{ NULL }
5555
};

sbin/mount_nfs/mount_nfs.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: mount_nfs.c,v 1.11 1996/02/18 11:59:11 fvdl Exp $ */
1+
/* $NetBSD: mount_nfs.c,v 1.12 1996/04/13 01:31:43 jtc Exp $ */
22

33
/*
44
* Copyright (c) 1992, 1993, 1994
@@ -46,7 +46,7 @@ static char copyright[] =
4646
#if 0
4747
static char sccsid[] = "@(#)mount_nfs.c 8.11 (Berkeley) 5/4/95";
4848
#else
49-
static char rcsid[] = "$NetBSD: mount_nfs.c,v 1.11 1996/02/18 11:59:11 fvdl Exp $";
49+
static char rcsid[] = "$NetBSD: mount_nfs.c,v 1.12 1996/04/13 01:31:43 jtc Exp $";
5050
#endif
5151
#endif /* not lint */
5252

@@ -106,7 +106,7 @@ static char rcsid[] = "$NetBSD: mount_nfs.c,v 1.11 1996/02/18 11:59:11 fvdl Exp
106106
#define ALTF_SOFT 0x800
107107
#define ALTF_TCP 0x1000
108108

109-
struct mntopt mopts[] = {
109+
const struct mntopt mopts[] = {
110110
MOPT_STDOPTS,
111111
MOPT_FORCE,
112112
MOPT_UPDATE,

sbin/mount_null/mount_null.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: mount_null.c,v 1.2 1995/03/18 14:57:48 cgd Exp $ */
1+
/* $NetBSD: mount_null.c,v 1.3 1996/04/13 01:31:49 jtc Exp $ */
22

33
/*
44
* Copyright (c) 1992, 1993, 1994
@@ -46,7 +46,7 @@ char copyright[] =
4646
#if 0
4747
static char sccsid[] = "@(#)mount_null.c 8.5 (Berkeley) 3/27/94";
4848
#else
49-
static char rcsid[] = "$NetBSD: mount_null.c,v 1.2 1995/03/18 14:57:48 cgd Exp $";
49+
static char rcsid[] = "$NetBSD: mount_null.c,v 1.3 1996/04/13 01:31:49 jtc Exp $";
5050
#endif
5151
#endif /* not lint */
5252

@@ -62,7 +62,7 @@ static char rcsid[] = "$NetBSD: mount_null.c,v 1.2 1995/03/18 14:57:48 cgd Exp $
6262

6363
#include "mntopts.h"
6464

65-
struct mntopt mopts[] = {
65+
const struct mntopt mopts[] = {
6666
MOPT_STDOPTS,
6767
{ NULL }
6868
};

sbin/mount_portal/mount_portal.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: mount_portal.c,v 1.7 1996/03/23 02:37:48 mrg Exp $ */
1+
/* $NetBSD: mount_portal.c,v 1.8 1996/04/13 01:31:54 jtc Exp $ */
22

33
/*
44
* Copyright (c) 1992, 1993, 1994
@@ -46,7 +46,7 @@ char copyright[] =
4646
#if 0
4747
static char sccsid[] = "@(#)mount_portal.c 8.4 (Berkeley) 3/27/94";
4848
#else
49-
static char rcsid[] = "$NetBSD: mount_portal.c,v 1.7 1996/03/23 02:37:48 mrg Exp $";
49+
static char rcsid[] = "$NetBSD: mount_portal.c,v 1.8 1996/04/13 01:31:54 jtc Exp $";
5050
#endif
5151
#endif /* not lint */
5252

@@ -69,7 +69,7 @@ static char rcsid[] = "$NetBSD: mount_portal.c,v 1.7 1996/03/23 02:37:48 mrg Exp
6969
#include "pathnames.h"
7070
#include "portald.h"
7171

72-
struct mntopt mopts[] = {
72+
const struct mntopt mopts[] = {
7373
MOPT_STDOPTS,
7474
{ NULL }
7575
};

0 commit comments

Comments
 (0)