aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2001-11-10 00:55:48 +0000
committerJeff Law <law@redhat.com>2001-11-10 00:55:48 +0000
commit917702709eb7be386d647829b4124c4b0bb8cf80 (patch)
treebcfd8591a19f190c1207b36d0bdd8a12dd40f4b2 /binutils/readelf.c
parentec33885937c311707a20bac4207422abde93511e (diff)
downloadgdb-917702709eb7be386d647829b4124c4b0bb8cf80.zip
gdb-917702709eb7be386d647829b4124c4b0bb8cf80.tar.gz
gdb-917702709eb7be386d647829b4124c4b0bb8cf80.tar.bz2
* readelf.c (get_elf_class): Fix ISO portability glitch.
(get_data_encoding, get_osabi_name, request_dump): Likewise.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 5987ca6..a58200f 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -233,10 +233,10 @@ static void add_abbrev_attr PARAMS ((unsigned long, un
static unsigned char * read_and_display_attr PARAMS ((unsigned long, unsigned long, unsigned char *, unsigned long, unsigned long));
static unsigned char * display_block PARAMS ((unsigned char *, unsigned long));
static void decode_location_expression PARAMS ((unsigned char *, unsigned int, unsigned long));
-static void request_dump PARAMS ((unsigned int, char));
-static const char * get_elf_class PARAMS ((unsigned char));
-static const char * get_data_encoding PARAMS ((unsigned char));
-static const char * get_osabi_name PARAMS ((unsigned char));
+static void request_dump PARAMS ((unsigned int, int));
+static const char * get_elf_class PARAMS ((unsigned int));
+static const char * get_data_encoding PARAMS ((unsigned int));
+static const char * get_osabi_name PARAMS ((unsigned int));
static int guess_is_rela PARAMS ((unsigned long));
static char * get_note_type PARAMS ((unsigned int));
static int process_note PARAMS ((Elf32_Internal_Note *));
@@ -2089,7 +2089,7 @@ usage ()
static void
request_dump (section, type)
unsigned int section;
- char type;
+ int type;
{
if (section >= num_dump_sects)
{
@@ -2300,7 +2300,7 @@ parse_args (argc, argv)
static const char *
get_elf_class (elf_class)
- unsigned char elf_class;
+ unsigned int elf_class;
{
static char buff [32];
@@ -2317,7 +2317,7 @@ get_elf_class (elf_class)
static const char *
get_data_encoding (encoding)
- unsigned char encoding;
+ unsigned int encoding;
{
static char buff [32];
@@ -2334,7 +2334,7 @@ get_data_encoding (encoding)
static const char *
get_osabi_name (osabi)
- unsigned char osabi;
+ unsigned int osabi;
{
static char buff [32];