aboutsummaryrefslogtreecommitdiff
path: root/binutils/objdump.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2020-01-13 17:28:41 +0000
committerNick Clifton <nickc@redhat.com>2020-01-13 17:28:41 +0000
commitc87c17c1c29078d221756e5dc373e09e03ca6755 (patch)
treec5b15fcc7b97e8b81f7b9851c340a1114c2d8ec5 /binutils/objdump.c
parente0037b4cc727274248aebc11543f2ea3a711dacb (diff)
downloadgdb-c87c17c1c29078d221756e5dc373e09e03ca6755.zip
gdb-c87c17c1c29078d221756e5dc373e09e03ca6755.tar.gz
gdb-c87c17c1c29078d221756e5dc373e09e03ca6755.tar.bz2
Moev declaration of loop variable outside of the loop.
* objdump.c (disassemble_bytes): Remove C99-ism.
Diffstat (limited to 'binutils/objdump.c')
-rw-r--r--binutils/objdump.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/binutils/objdump.c b/binutils/objdump.c
index a031e9d..2090f52 100644
--- a/binutils/objdump.c
+++ b/binutils/objdump.c
@@ -2623,8 +2623,9 @@ disassemble_bytes (struct disassemble_info * inf,
size_t line_buffer_size = strlen (line_buffer);
char last_color = 0;
+ size_t i;
- for (size_t i = 0; i <= line_buffer_size; ++i)
+ for (i = 0; i <= line_buffer_size; ++i)
{
if (color_output)
{