diff options
author | Lucio De Re <lucio.dere@gmail.com> | 2011-06-21 12:14:32 -0400 |
---|---|---|
committer | Lucio De Re <lucio.dere@gmail.com> | 2011-06-21 12:14:32 -0400 |
commit | 0d08e19b73ed64f99d224718a43e463b4ebfcedc (patch) | |
tree | c631a0831234cdc78bf852d513358c903da79b78 /src/cmd/8l/list.c | |
parent | 345eaca4a2cddf76c8af8bcf8014ff89a4728b58 (diff) | |
download | go-0d08e19b73ed64f99d224718a43e463b4ebfcedc.tar.gz |
8l: more fixes for Plan 9
Once these changes are effected, it is possible to construct
"8l" native on a (386?) Plan 9 system, albeit with assistance
from modules such as mkfiles that are not (yet) included in any
public patches.
8l/asm.c:
. Corrected some format qualifiers.
8l/list.c:
. Cast a print() argument to (int) to match the given format.
It may be possible to change the format (%R), but I have not
looked into it.
8l/obj.c:
. Removed some unused code.
8l/span.c:
. Removed unnecessary incrementation on "bp".
. Corrected some format qualifiers.
ld/data.c:
. Corrected some format qualifiers.
. Cast print argument to (int): used as field size.
. Use braces to suppress warning about empty if() statements.
ld/dwarf.c:
. Trivial spelling mistake in comment.
ld/ldelf.c:
. Added USED() statements to silence warnings.
. Dropped redundant address (&) operators.
. corrected some format qualifiers.
. Cast to (int) for switch selection variable.
ld/macho.c:
. Added USED() statements to silence warnings.
ld/ldpe.c:
. Added USED() statements to silence warnings.
. More careful use of "sect" variable.
. Corrected some format qualifiers.
. Removed redundant assignments.
. Minor fix dropped as it was submitted separately.
ld/pe.c:
. Dropped <time.h> which is now in <u.h>.
. Dropped redundant address (&) operators.
. Added a missing variable initialisation.
ld/symtab.c:
. Added USED() statements to silence warnings.
. Removed redundant incrementation.
. Corrected some format qualifiers.
All the above have been tested against a (very) recent release
and do not seem to trigger any regressions.
All review suggestions have been incorporated.
R=rsc
CC=golang-dev
http://codereview.appspot.com/4633043
Committer: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/cmd/8l/list.c')
-rw-r--r-- | src/cmd/8l/list.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/8l/list.c b/src/cmd/8l/list.c index 4e199d767..31ae02346 100644 --- a/src/cmd/8l/list.c +++ b/src/cmd/8l/list.c @@ -176,7 +176,7 @@ Dconv(Fmt *fp) } brk: if(a->index != D_NONE) { - sprint(s, "(%R*%d)", a->index, a->scale); + sprint(s, "(%R*%d)", (int)a->index, a->scale); strcat(str, s); } conv: |