summaryrefslogtreecommitdiff
path: root/usr.bin/nm
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1998-07-17 04:21:57 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1998-07-17 04:21:57 +0000
commit3d2b5d3d9b22eaf88c8bed2cae02ac8811923614 (patch)
treec9ac43c48ba137f19b127e63dd3afe8ad7ae6523 /usr.bin/nm
parente3c0ee2101808536b97cdf4749bd1c352d49b31a (diff)
Notes
Diffstat (limited to 'usr.bin/nm')
-rw-r--r--usr.bin/nm/nm.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/nm/nm.c b/usr.bin/nm/nm.c
index 42d95fd3f840..46583a44e4b6 100644
--- a/usr.bin/nm/nm.c
+++ b/usr.bin/nm/nm.c
@@ -45,7 +45,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)nm.c 8.1 (Berkeley) 6/6/93";
#endif
static const char rcsid[] =
- "$Id: nm.c,v 1.9.2.2 1997/08/29 05:29:40 imp Exp $";
+ "$Id: nm.c,v 1.9.2.3 1997/09/15 09:20:57 jkh Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -309,7 +309,7 @@ show_archive(fname, fp)
rval = 1;
}
} else {
- (void)fseek(fp, (long)-sizeof(exec_head),
+ (void)fseek(fp, -(long)sizeof(exec_head),
SEEK_CUR);
if (!print_file_each_line && !table)
(void)printf("\n%s:\n", name);
@@ -346,7 +346,7 @@ show_objfile(objname, fp)
register struct nlist *names, *np;
register int i, nnames, nrawnames;
struct exec head;
- long stabsize;
+ int32_t stabsize;
char *stab;
/* read a.out header */
@@ -359,7 +359,7 @@ show_objfile(objname, fp)
* skip back to the header - the N_-macros return values relative
* to the beginning of the a.out header
*/
- if (fseek(fp, (long)-sizeof(head), SEEK_CUR)) {
+ if (fseek(fp, -(long)sizeof(head), SEEK_CUR)) {
warn("%s", objname);
return(1);
}
@@ -474,7 +474,7 @@ print_symbol(objname, sym)
if (table) {
printf("%s|", objname);
if (SYMBOL_TYPE(sym->n_type) != N_UNDF)
- (void)printf("%08lx", sym->n_value);
+ (void)printf("%08lx", (u_long)sym->n_value);
(void)printf("|");
if (IS_DEBUGGER_SYMBOL(sym->n_type))
(void)printf("-|%02x %04x %5s|", sym->n_other,
@@ -506,7 +506,7 @@ print_symbol(objname, sym)
if (SYMBOL_TYPE(sym->n_type) == N_UNDF)
(void)printf(" ");
else
- (void)printf("%08lx", sym->n_value);
+ (void)printf("%08lx", (u_long)sym->n_value);
/* print type information */
if (IS_DEBUGGER_SYMBOL(sym->n_type))