Fix C90 conversion
authorAnthony Green <green@redhat.com>
Mon, 15 Sep 2003 14:40:44 +0000 (14:40 +0000)
committerAnthony Green <green@redhat.com>
Mon, 15 Sep 2003 14:40:44 +0000 (14:40 +0000)
binutils/ChangeLog
binutils/dlltool.c

index 04af201f5121fef9db225e29e4879b3a3c59f3dc..1f57607240422e37e7ed552d0401b24ed2d1e099 100644 (file)
@@ -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
index 84f369243d35b42b33d29d30436d25f7406476cb..996ec2c9df780fd7d72ffd5cdefd971f46be369e 100644 (file)
@@ -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
This page took 0.026734 seconds and 4 git commands to generate.