From owner-cvs-usrbin Mon Jul 6 14:46:25 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA25092 for cvs-usrbin-outgoing; Mon, 6 Jul 1998 14:46:25 -0700 (PDT) (envelope-from owner-cvs-usrbin) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA24892; Mon, 6 Jul 1998 14:45:23 -0700 (PDT) (envelope-from bde@FreeBSD.org) From: Bruce Evans Received: (from bde@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id OAA28771; Mon, 6 Jul 1998 14:45:14 -0700 (PDT) Date: Mon, 6 Jul 1998 14:45:14 -0700 (PDT) Message-Id: <199807062145.OAA28771@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-usrbin@FreeBSD.ORG Subject: cvs commit: src/usr.bin/nm nm.c Sender: owner-cvs-usrbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 1998/07/06 14:45:13 PDT Modified files: usr.bin/nm nm.c Log: Fixed classic sign extension bug `-(long)sizeof(foo)'. Fixed the type of the string table size variable to match its use (assuming that int32_t is 4 bytes and other unportable things). bfd uses `unsigned char string_chars[BYTES_IN_WORD]', where BYTES_IN_WORD can be 4, 8, or perhaps even 2 or 3, but it is assumed to be precisely 4 bytes here. Fixed printf format errors (don't assume that n_value in struct n_list has type u_long, since it should have size BYTES_IN_WORD and longs may be longer than words). Revision Changes Path 1.12 +6 -6 src/usr.bin/nm/nm.c