Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/bad144 sprinkle vax



details:   https://anonhg.NetBSD.org/src/rev/6515b5957c30
branches:  trunk
changeset: 791070:6515b5957c30
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Nov 03 00:48:52 2013 +0000

description:
sprinkle vax

diffstat:

 usr.sbin/bad144/bad144.c |  11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diffs (40 lines):

diff -r 0c59f0789251 -r 6515b5957c30 usr.sbin/bad144/bad144.c
--- a/usr.sbin/bad144/bad144.c  Sun Nov 03 00:44:34 2013 +0000
+++ b/usr.sbin/bad144/bad144.c  Sun Nov 03 00:48:52 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bad144.c,v 1.29 2011/11/25 13:13:33 joerg Exp $        */
+/*     $NetBSD: bad144.c,v 1.30 2013/11/03 00:48:52 christos Exp $     */
 
 /*
  * Copyright (c) 1980, 1986, 1988, 1993
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)bad144.c   8.2 (Berkeley) 4/27/95";
 #else
-__RCSID("$NetBSD: bad144.c,v 1.29 2011/11/25 13:13:33 joerg Exp $");
+__RCSID("$NetBSD: bad144.c,v 1.30 2013/11/03 00:48:52 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -109,7 +109,10 @@
 main(int argc, char *argv[])
 {
        struct bt_bad *bt;
-       daddr_t sn, bn[NBT_BAD];
+       daddr_t sn;
+#ifdef __vax__
+       daddr_t bn[NBT_BAD];
+#endif
        int i, f, nbad, new, bad, errs, ch;
 
        while ((ch = getopt(argc, argv, OPTSTRING)) != -1) {
@@ -250,7 +253,9 @@
                        errs++;
                        continue;
                }
+#ifdef __vax__
                bn[i] = sn;
+#endif
                curbad.bt_bad[i].bt_cyl = sn / (dp->d_nsectors*dp->d_ntracks);
                sn %= (dp->d_nsectors*dp->d_ntracks);
                curbad.bt_bad[i].bt_trksec =



Home | Main Index | Thread Index | Old Index