Source-Changes-HG archive

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

[src/trunk]: src/sbin/newfs_msdos constify opts[]



details:   https://anonhg.NetBSD.org/src/rev/1f72e7a452b6
branches:  trunk
changeset: 779993:1f72e7a452b6
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Wed Jul 04 18:35:58 2012 +0000

description:
constify opts[]

diffstat:

 sbin/newfs_msdos/newfs_msdos.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r f3a3841b772f -r 1f72e7a452b6 sbin/newfs_msdos/newfs_msdos.c
--- a/sbin/newfs_msdos/newfs_msdos.c    Wed Jul 04 13:54:20 2012 +0000
+++ b/sbin/newfs_msdos/newfs_msdos.c    Wed Jul 04 18:35:58 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: newfs_msdos.c,v 1.36 2011/08/29 14:35:03 joerg Exp $   */
+/*     $NetBSD: newfs_msdos.c,v 1.37 2012/07/04 18:35:58 jakllsch Exp $        */
 
 /*
  * Copyright (c) 1998 Robert Nordier
@@ -33,7 +33,7 @@
 static const char rcsid[] =
   "$FreeBSD: src/sbin/newfs_msdos/newfs_msdos.c,v 1.15 2000/10/10 01:49:37 wollman Exp $";
 #else
-__RCSID("$NetBSD: newfs_msdos.c,v 1.36 2011/08/29 14:35:03 joerg Exp $");
+__RCSID("$NetBSD: newfs_msdos.c,v 1.37 2012/07/04 18:35:58 jakllsch Exp $");
 #endif
 #endif /* not lint */
 
@@ -246,7 +246,7 @@
 int
 main(int argc, char *argv[])
 {
-    static char opts[] = "@:NB:C:F:I:L:O:S:a:b:c:e:f:h:i:k:m:n:o:r:s:u:";
+    static const char opts[] = "@:NB:C:F:I:L:O:S:a:b:c:e:f:h:i:k:m:n:o:r:s:u:";
     static const char *opt_B, *opt_L, *opt_O, *opt_f;
     static u_int opt_F, opt_I, opt_S, opt_a, opt_b, opt_c, opt_e;
     static u_int opt_h, opt_i, opt_k, opt_m, opt_n, opt_o, opt_r;



Home | Main Index | Thread Index | Old Index