aboutsummaryrefslogtreecommitdiff
path: root/binutils/sysdump.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-02-22 12:57:27 +0000
committerAlan Modra <amodra@gmail.com>2005-02-22 12:57:27 +0000
commitdc3c06c291951d9aca329aa6a69fc3443f08f0b1 (patch)
tree0cc8fa1cb3099e3e792d41eff523bbcbd7637477 /binutils/sysdump.c
parent58e2ea4d1caa51d171a9a8fb8649a6cda59ad28e (diff)
downloadgdb-dc3c06c291951d9aca329aa6a69fc3443f08f0b1.zip
gdb-dc3c06c291951d9aca329aa6a69fc3443f08f0b1.tar.gz
gdb-dc3c06c291951d9aca329aa6a69fc3443f08f0b1.tar.bz2
* Makefile.am (syslex.o, sysinfo.o): Pass AM_CFLAGS to compiler.
(syslex.o, sysinfo.o, dlltool.o, rescoff.o): Remove duplicate dependencies. Run "make dep-am". * nlmconv.c: Warning fixes. * readelf.c: Likewise. * srconv.c: Likewise. * sysdump.c: Likewise. * sysinfo.y: Likewise. * syslex.l: Likewise. Use yyleng instead of strlen, memcpy instead of strcpy. * Makefile.in: Regenerate.
Diffstat (limited to 'binutils/sysdump.c')
-rw-r--r--binutils/sysdump.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/binutils/sysdump.c b/binutils/sysdump.c
index e75de84..3b219c7 100644
--- a/binutils/sysdump.c
+++ b/binutils/sysdump.c
@@ -1,5 +1,5 @@
/* Sysroff object format dumper.
- Copyright 1994, 1995, 1998, 1999, 2000, 2001, 2002, 2003
+ Copyright 1994, 1995, 1998, 1999, 2000, 2001, 2002, 2003, 2005
Free Software Foundation, Inc.
This file is part of GNU Binutils.
@@ -55,10 +55,10 @@ static void module (void);
static void show_usage (FILE *, int);
extern char *getCHARS (unsigned char *, int *, int, int);
-extern int fillup (char *);
+extern int fillup (unsigned char *);
extern barray getBARRAY (unsigned char *, int *, int, int);
extern int getINT (unsigned char *, int *, int, int);
-extern int getBITS (char *, int *, int, int);
+extern int getBITS (unsigned char *, int *, int, int);
extern void sysroff_swap_tr_in (void);
extern void sysroff_print_tr_out (void);
extern int main (int, char **);
@@ -121,7 +121,7 @@ dh (unsigned char *ptr, int size)
}
int
-fillup (char *ptr)
+fillup (unsigned char *ptr)
{
int size;
int sum;
@@ -198,7 +198,7 @@ getINT (unsigned char *ptr, int *idx, int size, int max)
}
int
-getBITS (char *ptr, int *idx, int size, int max)
+getBITS (unsigned char *ptr, int *idx, int size, int max)
{
int byte = *idx / 8;
int bit = *idx % 8;
@@ -265,7 +265,7 @@ pbarray (barray *y)
void
sysroff_swap_tr_in (void)
{
- char raw[255];
+ unsigned char raw[255];
memset (raw, 0, 255);
fillup (raw);