=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/size/Attic/size.c,v retrieving revision 1.10 retrieving revision 1.11 diff -c -r1.10 -r1.11 *** src/usr.bin/size/Attic/size.c 1998/05/11 20:20:55 1.10 --- src/usr.bin/size/Attic/size.c 1999/05/10 16:14:07 1.11 *************** *** 1,4 **** ! /* $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 $ */ /* --- 1,4 ---- ! /* $OpenBSD: size.c,v 1.11 1999/05/10 16:14:07 espie Exp $ */ /* $NetBSD: size.c,v 1.7 1996/01/14 23:07:12 pk Exp $ */ /* *************** *** 44,50 **** #if 0 static char sccsid[] = "@(#)size.c 8.2 (Berkeley) 12/9/93"; #endif ! static char rcsid[] = "$OpenBSD: size.c,v 1.10 1998/05/11 20:20:55 niklas Exp $"; #endif /* not lint */ #include --- 44,50 ---- #if 0 static char sccsid[] = "@(#)size.c 8.2 (Berkeley) 12/9/93"; #endif ! static char rcsid[] = "$OpenBSD: size.c,v 1.11 1999/05/10 16:14:07 espie Exp $"; #endif /* not lint */ #include *************** *** 58,63 **** --- 58,64 ---- #include #include #include + #include "byte.c" #ifdef MID_MACHINE_OVERRIDE #undef MID_MACHINE *************** *** 245,260 **** return(1); } ! if (N_BADMAG(exec_head)) { if (!ignore_bad_archive_entries) { warnx("%s: bad format", name); rval = 1; } - } else if (N_GETMID(exec_head) != MID_MACHINE) { - if (!ignore_bad_archive_entries) { - warnx("%s: wrong architecture", name); - rval = 1; - } } else { (void)fseek(fp, (long)-sizeof(exec_head), SEEK_CUR); --- 246,256 ---- return(1); } ! if (BAD_OBJECT(exec_head)) { if (!ignore_bad_archive_entries) { warnx("%s: bad format", name); rval = 1; } } else { (void)fseek(fp, (long)-sizeof(exec_head), SEEK_CUR); *************** *** 292,306 **** return(1); } ! if (N_BADMAG(head)) { warnx("%s: bad format", name); return(1); } ! if (N_GETMID(head) && N_GETMID(head) != MID_MACHINE) { ! warnx("%s: wrong architecture", name); ! return(1); ! } if (first) { first = 0; --- 288,299 ---- return(1); } ! if (BAD_OBJECT(head)) { warnx("%s: bad format", name); return(1); } ! fix_header_order(&head); if (first) { first = 0;