diff options
author | Alan Modra <amodra@gmail.com> | 2005-02-22 12:57:27 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2005-02-22 12:57:27 +0000 |
commit | dc3c06c291951d9aca329aa6a69fc3443f08f0b1 (patch) | |
tree | 0cc8fa1cb3099e3e792d41eff523bbcbd7637477 /binutils/srconv.c | |
parent | 58e2ea4d1caa51d171a9a8fb8649a6cda59ad28e (diff) | |
download | gdb-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/srconv.c')
-rw-r--r-- | binutils/srconv.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/binutils/srconv.c b/binutils/srconv.c index 6f6fc5c..4c909b7 100644 --- a/binutils/srconv.c +++ b/binutils/srconv.c @@ -1,6 +1,6 @@ /* srconv.c -- Sysroff conversion program - Copyright 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004 - Free Software Foundation, Inc. + Copyright 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004, + 2005 Free Software Foundation, Inc. This file is part of GNU Binutils. @@ -46,11 +46,11 @@ static int get_member_id (int); static int get_ordinary_id (int); static char *section_translate (char *); static char *strip_suffix (char *); -static void checksum (FILE *, char *, int, int); -static void writeINT (int, char *, int *, int, FILE *); -static void writeBITS (int, char *, int *, int); -static void writeBARRAY (barray, char *, int *, int, FILE *); -static void writeCHARS (char *, char *, int *, int, FILE *); +static void checksum (FILE *, unsigned char *, int, int); +static void writeINT (int, unsigned char *, int *, int, FILE *); +static void writeBITS (int, unsigned char *, int *, int); +static void writeBARRAY (barray, unsigned char *, int *, int, FILE *); +static void writeCHARS (char *, unsigned char *, int *, int, FILE *); static void wr_tr (void); static void wr_un (struct coff_ofile *, struct coff_sfile *, int, int); static void wr_hd (struct coff_ofile *); @@ -158,7 +158,7 @@ strip_suffix (char *name) /* IT LEN stuff CS */ static void -checksum (FILE *file, char *ptr, int size, int code) +checksum (FILE *file, unsigned char *ptr, int size, int code) { int j; int last; @@ -181,7 +181,7 @@ checksum (FILE *file, char *ptr, int size, int code) static void -writeINT (int n, char *ptr, int *idx, int size, FILE *file) +writeINT (int n, unsigned char *ptr, int *idx, int size, FILE *file) { int byte = *idx / 8; @@ -222,7 +222,7 @@ writeINT (int n, char *ptr, int *idx, int size, FILE *file) } static void -writeBITS (int val, char *ptr, int *idx, int size) +writeBITS (int val, unsigned char *ptr, int *idx, int size) { int byte = *idx / 8; int bit = *idx % 8; @@ -239,8 +239,8 @@ writeBITS (int val, char *ptr, int *idx, int size) } static void -writeBARRAY (barray data, char *ptr, int *idx, int size ATTRIBUTE_UNUSED, - FILE *file) +writeBARRAY (barray data, unsigned char *ptr, int *idx, + int size ATTRIBUTE_UNUSED, FILE *file) { int i; @@ -250,7 +250,7 @@ writeBARRAY (barray data, char *ptr, int *idx, int size ATTRIBUTE_UNUSED, } static void -writeCHARS (char *string, char *ptr, int *idx, int size, FILE *file) +writeCHARS (char *string, unsigned char *ptr, int *idx, int size, FILE *file) { int i = *idx / 8; |