Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/mopd/mopa.out Don't die, just complain if the conve...



details:   https://anonhg.NetBSD.org/src/rev/8f4d9c7864d7
branches:  trunk
changeset: 486365:8f4d9c7864d7
user:      ragge <ragge%NetBSD.org@localhost>
date:      Sat May 20 10:58:05 2000 +0000

description:
Don't die, just complain if the converted image do not have a VAX MID.

diffstat:

 usr.sbin/mopd/mopa.out/mopa.out.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 9fa80003f5ad -r 8f4d9c7864d7 usr.sbin/mopd/mopa.out/mopa.out.c
--- a/usr.sbin/mopd/mopa.out/mopa.out.c Sat May 20 07:11:25 2000 +0000
+++ b/usr.sbin/mopd/mopa.out/mopa.out.c Sat May 20 10:58:05 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mopa.out.c,v 1.5 1997/10/16 23:25:09 lukem Exp $       */
+/*     $NetBSD: mopa.out.c,v 1.6 2000/05/20 10:58:05 ragge Exp $       */
 
 /* mopa.out - Convert a Unix format kernel into something that
  * can be transfered via MOP.
@@ -49,7 +49,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: mopa.out.c,v 1.5 1997/10/16 23:25:09 lukem Exp $");
+__RCSID("$NetBSD: mopa.out.c,v 1.6 2000/05/20 10:58:05 ragge Exp $");
 #endif
 
 #include "os.h"
@@ -107,7 +107,8 @@
                errx(3, "`%s' is not an a.out file", argv[1]);
 
        if (dl.aout != MID_VAX)
-               errx(4, "`%s' is not a VAX image (mid=%d)", argv[1], dl.aout);
+               printf("WARNING: `%s' is not a VAX image (mid=%d)\n",
+                   argv[1], dl.aout);
 
        i = dl.a_text + dl.a_text_fill + dl.a_data + dl.a_data_fill +
            dl.a_bss  + dl.a_bss_fill;



Home | Main Index | Thread Index | Old Index