summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Green <green@redhat.com>2003-09-15 14:40:44 +0000
committerAnthony Green <green@redhat.com>2003-09-15 14:40:44 +0000
commit1e927092497c874284998269fcc82821ecbcd755 (patch)
tree4adbdfa850411833842e384d4746d4806559123f
parent7ce02b2988bbf40423b7173ac53b9d1ff3c6914c (diff)
downloadbinutils-redhat-1e927092497c874284998269fcc82821ecbcd755.tar.gz
Fix C90 conversion
-rw-r--r--binutils/ChangeLog6
-rw-r--r--binutils/dlltool.c10
2 files changed, 11 insertions, 5 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 04af201f51..1f57607240 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,9 @@
+2003-09-15 Anthony Green <green@redhat.com>
+
+ * dlltool.c (prefix_encode): Fix ISO C90 conversion.
+ (dlltmp): Ditto.
+ (dtab): Ditto.
+
2003-09-14 Andreas Jaeger <aj@suse.de>
* addr2line.c: Convert to ISO C90 prototypes, change PTR, remove
diff --git a/binutils/dlltool.c b/binutils/dlltool.c
index 84f369243d..996ec2c9df 100644
--- a/binutils/dlltool.c
+++ b/binutils/dlltool.c
@@ -706,12 +706,12 @@ static void usage (FILE *, int);
static void inform (const char *, ...);
static char *
-prefix_encode (char *start, unsigned code))
+prefix_encode (char *start, unsigned code)
{
static char alpha[26] = "abcdefghijklmnopqrstuvwxyz";
static char buf[32];
char *p;
- strcpy (buf, start;
+ strcpy (buf, start);
p = strchr (buf, '\0');
do
*p++ = alpha[code % sizeof (alpha)];
@@ -721,11 +721,11 @@ prefix_encode (char *start, unsigned code))
}
static char *
-dlltmp (char **buf, const char *fmt))
+dlltmp (char **buf, const char *fmt)
{
if (!*buf)
{
- *buf = malloc (strlen (tmp_prefix) + 64;
+ *buf = malloc (strlen (tmp_prefix) + 64);
sprintf (*buf, fmt, tmp_prefix);
}
return *buf;
@@ -2890,7 +2890,7 @@ remove_null_names (export_type **ptr)
}
static void
-dtab (export **ptr
+dtab (export_type **ptr
#ifndef SACDEBUG
ATTRIBUTE_UNUSED
#endif