Source-Changes-HG archive

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

[src/trunk]: src/distrib/utils/sysinst/arch/mac68k Use getfslabelname() inste...



details:   https://anonhg.NetBSD.org/src/rev/2e9b2fce788d
branches:  trunk
changeset: 772518:2e9b2fce788d
user:      riz <riz%NetBSD.org@localhost>
date:      Fri Jan 06 20:41:28 2012 +0000

description:
Use getfslabelname() instead of trying to access fstypenames[] directly.

diffstat:

 distrib/utils/sysinst/arch/mac68k/md.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 583c40c8b354 -r 2e9b2fce788d distrib/utils/sysinst/arch/mac68k/md.c
--- a/distrib/utils/sysinst/arch/mac68k/md.c    Fri Jan 06 20:40:51 2012 +0000
+++ b/distrib/utils/sysinst/arch/mac68k/md.c    Fri Jan 06 20:41:28 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: md.c,v 1.60 2011/11/04 11:27:03 martin Exp $ */
+/*     $NetBSD: md.c,v 1.61 2012/01/06 20:41:28 riz Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -336,7 +336,7 @@
                    (void)fprintf (f, "\t:p%c#%d:o%c#%d:t%c=%s:",
                               'a'+i, bsdlabel[i].pi_size,
                               'a'+i, bsdlabel[i].pi_offset,
-                              'a'+i, fstypenames[bsdlabel[i].pi_fstype]);
+                              'a'+i, getfslabelname(bsdlabel[i].pi_fstype));
                if (bsdlabel[i].pi_fstype == FS_BSDFFS)
                        (void)fprintf (f, "b%c#%d:f%c#%d",
                           'a'+i, bsdlabel[i].pi_fsize * bsdlabel[i].pi_frag,



Home | Main Index | Thread Index | Old Index