This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: ISO C90 conversion fixes


Here are some build-fixing corrections.  Ok to commit?


2003-09-15  Anthony Green  <green@redhat.com>

	* dlltool.c (prefix_encode): Fix ISO C90 conversion.
	(dlltmp): Ditto.
	(dtab): Ditto.


Index: dlltool.c
===================================================================
RCS file: /cvs/src/src/binutils/dlltool.c,v
retrieving revision 1.43
diff -c -u -r1.43 dlltool.c
--- dlltool.c	14 Sep 2003 12:20:16 -0000	1.43
+++ dlltool.c	15 Sep 2003 14:24:23 -0000
@@ -706,12 +706,12 @@
 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 @@
 }
 
 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 @@
 }
 
 static void
-dtab (export **ptr
+dtab (export_type **ptr
 #ifndef SACDEBUG
 ATTRIBUTE_UNUSED
 #endif




-- 
Anthony Green <green@redhat.com>
Red Hat, Inc.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]