summaryrefslogtreecommitdiff
path: root/usr.bin/size/size.c
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1998-05-11 20:20:56 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1998-05-11 20:20:56 +0000
commit983cb05f4bfe5e3430398510fce670fe44342df8 (patch)
treebfd4ce0c5ea5dde5a9b5a532d5b26b4f92cde679 /usr.bin/size/size.c
parent270168b7bd53499a07ffc2d88ba09500cc3ff6e9 (diff)
work on files linked with -Z too
Diffstat (limited to 'usr.bin/size/size.c')
-rw-r--r--usr.bin/size/size.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/size/size.c b/usr.bin/size/size.c
index ed420059eb4..41342ed1071 100644
--- a/usr.bin/size/size.c
+++ b/usr.bin/size/size.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: size.c,v 1.9 1998/05/11 07:40:31 niklas Exp $ */
+/* $OpenBSD: size.c,v 1.10 1998/05/11 20:20:55 niklas Exp $ */
/* $NetBSD: size.c,v 1.7 1996/01/14 23:07:12 pk Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)size.c 8.2 (Berkeley) 12/9/93";
#endif
-static char rcsid[] = "$OpenBSD: size.c,v 1.9 1998/05/11 07:40:31 niklas Exp $";
+static char rcsid[] = "$OpenBSD: size.c,v 1.10 1998/05/11 20:20:55 niklas Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -297,7 +297,7 @@ show_objfile(count, name, fp)
return(1);
}
- if (N_GETMID(head) != MID_MACHINE) {
+ if (N_GETMID(head) && N_GETMID(head) != MID_MACHINE) {
warnx("%s: wrong architecture", name);
return(1);
}