diff options
author | jkh <jkh@FreeBSD.org> | 1996-07-12 19:08:36 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-07-12 19:08:36 +0000 |
commit | 730964efd28b80be48ed35a215a362dde2b6b7a7 (patch) | |
tree | b07c215aa55db3fb81db462f4bc70f61cd56c57f /gnu/usr.bin/ld/ld.c | |
parent | c4d4a99d31762beef936f34571330923e9300da9 (diff) | |
download | FreeBSD-src-730964efd28b80be48ed35a215a362dde2b6b7a7.zip FreeBSD-src-730964efd28b80be48ed35a215a362dde2b6b7a7.tar.gz |
General -Wall warning cleanup, part I.
Submitted-By: Kent Vander Velden <graphix@iastate.edu>
Diffstat (limited to 'gnu/usr.bin/ld/ld.c')
-rw-r--r-- | gnu/usr.bin/ld/ld.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gnu/usr.bin/ld/ld.c b/gnu/usr.bin/ld/ld.c index a1205fd..3a9dfeb 100644 --- a/gnu/usr.bin/ld/ld.c +++ b/gnu/usr.bin/ld/ld.c @@ -32,7 +32,7 @@ static char sccsid[] = "@(#)ld.c 6.10 (Berkeley) 5/22/91"; Set, indirect, and warning symbol features added by Randy Smith. */ /* - * $Id: ld.c,v 1.33 1996/05/28 16:17:48 phk Exp $ + * $Id: ld.c,v 1.34 1996/06/08 04:52:57 wpaul Exp $ */ /* Define how to initialize system-dependent header fields. */ @@ -875,10 +875,10 @@ check_each_file(function, arg) for (; subentry; subentry = subentry->chain) { if (subentry->flags & E_SCRAPPED) continue; - if (return_val = (*function)(subentry, arg)) + if ( (return_val = (*function)(subentry, arg)) ) return return_val; } - } else if (return_val = (*function)(entry, arg)) + } else if ( (return_val = (*function)(entry, arg)) ) return return_val; } return 0; @@ -2391,7 +2391,7 @@ digest_pass2() /* Flag second-hand definitions */ undefined_global_sym_count++; if (sp->flags & GS_TRACE) - printf("symbol %s assigned to location %#x\n", + printf("symbol %s assigned to location %#lx\n", sp->name, sp->value); } @@ -2456,7 +2456,7 @@ digest_pass2() } bss_size += size; if (write_map) - printf("Allocating %s %s: %x at %x\n", + printf("Allocating %s %s: %x at %lx\n", sp->defined==(N_BSS|N_EXT)?"common":"data", sp->name, size, sp->value); @@ -3607,7 +3607,8 @@ write_file_syms(entry, syms_written_addr) continue; if (discard_locals == DISCARD_ALL || - discard_locals == DISCARD_L && lsp->flags & LS_L_SYMBOL) { + (discard_locals == DISCARD_L && + (lsp->flags & LS_L_SYMBOL))) { /* * The user wants to discard this symbol, but it * is referenced by a relocation. We can still |