aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2000-07-10 14:51:04 +0000
committerAlan Modra <amodra@gmail.com>2000-07-10 14:51:04 +0000
commit3c9f43b196df798c2f2e6556a220caceaa96edea (patch)
treeccf09667a77d3bdbac08d246759868ee49d8e853 /binutils/readelf.c
parent8db62801bd2efe1b9e6493b1a4ecadf605791b99 (diff)
downloadgdb-3c9f43b196df798c2f2e6556a220caceaa96edea.zip
gdb-3c9f43b196df798c2f2e6556a220caceaa96edea.tar.gz
gdb-3c9f43b196df798c2f2e6556a220caceaa96edea.tar.bz2
Warning fixes.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 64207d9..83cba0b 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -4230,10 +4230,10 @@ get_dynamic_data (file, number)
FILE * file;
unsigned int number;
{
- char * e_data;
+ unsigned char * e_data;
int * i_data;
- e_data = (char *) malloc (number * 4);
+ e_data = (unsigned char *) malloc (number * 4);
if (e_data == NULL)
{
@@ -4270,8 +4270,8 @@ process_symbol_table (file)
FILE * file;
{
Elf32_Internal_Shdr * section;
- char nb [4];
- char nc [4];
+ unsigned char nb [4];
+ unsigned char nc [4];
int nbuckets = 0;
int nchains = 0;
int * buckets = NULL;
@@ -4885,7 +4885,7 @@ process_extended_line_op (data, is_stmt, pointer_size)
printf (_(" %d\t"), ++ state_machine_regs.last_file_entry);
name = data;
- data += strlen (data) + 1;
+ data += strlen ((char *) data) + 1;
printf (_("%lu\t"), read_leb128 (data, & bytes_read, 0));
data += bytes_read;
printf (_("%lu\t"), read_leb128 (data, & bytes_read, 0));
@@ -4990,7 +4990,7 @@ display_debug_lines (section, start, file)
{
printf (_(" %s\n"), data);
- data += strlen (data) + 1;
+ data += strlen ((char *) data) + 1;
}
}
@@ -5007,13 +5007,13 @@ display_debug_lines (section, start, file)
while (* data != 0)
{
- char * name;
+ unsigned char * name;
int bytes_read;
printf (_(" %d\t"), ++ state_machine_regs.last_file_entry);
name = data;
- data += strlen (data) + 1;
+ data += strlen ((char *) data) + 1;
printf (_("%lu\t"), read_leb128 (data, & bytes_read, 0));
data += bytes_read;
@@ -5183,7 +5183,7 @@ display_debug_pubnames (section, start, file)
{
data += 4;
printf (" %ld\t\t%s\n", offset, data);
- data += strlen (data) + 1;
+ data += strlen ((char *) data) + 1;
}
}
while (offset != 0);
@@ -6008,7 +6008,7 @@ read_and_display_attr (attribute, form, data, cu_offset, pointer_size)
case DW_FORM_string:
printf (" %s", data);
- data += strlen (data) + 1;
+ data += strlen ((char *) data) + 1;
break;
case DW_FORM_block: