Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/installboot A small bit of constification



details:   https://anonhg.NetBSD.org/src/rev/f6538396c1f9
branches:  trunk
changeset: 766043:f6538396c1f9
user:      matt <matt%NetBSD.org@localhost>
date:      Tue Jun 14 05:35:08 2011 +0000

description:
A small bit of constification

diffstat:

 usr.sbin/installboot/installboot.h |  4 ++--
 usr.sbin/installboot/machines.c    |  6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r c413c3ad36fb -r f6538396c1f9 usr.sbin/installboot/installboot.h
--- a/usr.sbin/installboot/installboot.h        Tue Jun 14 05:32:59 2011 +0000
+++ b/usr.sbin/installboot/installboot.h        Tue Jun 14 05:35:08 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: installboot.h,v 1.37 2010/01/14 17:49:32 drochner Exp $        */
+/*     $NetBSD: installboot.h,v 1.38 2011/06/14 05:35:08 matt Exp $    */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -135,7 +135,7 @@
        bbinfo_endian   endian;
 };
 
-extern struct ib_mach  *machines[];
+extern struct ib_mach  * const machines[];
 extern struct ib_fs    fstypes[];
 
        /* installboot.c */
diff -r c413c3ad36fb -r f6538396c1f9 usr.sbin/installboot/machines.c
--- a/usr.sbin/installboot/machines.c   Tue Jun 14 05:32:59 2011 +0000
+++ b/usr.sbin/installboot/machines.c   Tue Jun 14 05:35:08 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machines.c,v 1.37 2011/01/26 01:18:55 pooka Exp $      */
+/*     $NetBSD: machines.c,v 1.38 2011/06/14 05:35:08 matt Exp $       */
 
 /*-
  * Copyright (c) 2002-2005 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
 
 #include <sys/cdefs.h>
 #if !defined(__lint)
-__RCSID("$NetBSD: machines.c,v 1.37 2011/01/26 01:18:55 pooka Exp $");
+__RCSID("$NetBSD: machines.c,v 1.38 2011/06/14 05:35:08 matt Exp $");
 #endif /* !__lint */
 
 #include <sys/types.h>
@@ -68,7 +68,7 @@
     ib_mach_vax,
     ib_mach_x68k;
 
-struct ib_mach *machines[] = {
+struct ib_mach * const machines[] = {
     &ib_mach_alpha,
     &ib_mach_amd64,
     &ib_mach_amiga,



Home | Main Index | Thread Index | Old Index