`template' isn't a very good name for a variable.
authorAlan Modra <amodra@gmail.com>
Wed, 6 Sep 2000 00:22:01 +0000 (00:22 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 6 Sep 2000 00:22:01 +0000 (00:22 +0000)
Who invented c++ anyway?

bfd/ChangeLog
bfd/bfd-in2.h
bfd/section.c

index f110a0cf708a5c0df3544424acc68447c43682c8..0d65780d25a91d2dc82ab3b94142ba6dd7e8c5bb 100644 (file)
@@ -1,3 +1,9 @@
+2000-09-06  Alan Modra  <alan@linuxcare.com.au>
+
+       * section.c (bfd_get_unique_section_name): Avoid c++ reserved
+       word for variable name.
+       * bfd-in2.h: Regenerate.
+       
 2000-09-05  Nick Clifton  <nickc@redhat.com>
 
        * config.in: Regenerate.
index 66081e8f3965a7c36c418b137c9ca939eea4387b..ca6e36b2ee77c0ee4c531c7458d1b978aca19044 100644 (file)
@@ -1284,7 +1284,7 @@ bfd_get_section_by_name PARAMS ((bfd *abfd, const char *name));
 
 char *
 bfd_get_unique_section_name PARAMS ((bfd *abfd,
-    const char *template,
+    const char *templat,
     int *count));
 
 asection *
index 69d80cfb5eb4e63729be71c92c6622410c44691c..6064924b4308cf979ad4900e6163059683372b08 100644 (file)
@@ -649,30 +649,30 @@ FUNCTION
 
 SYNOPSIS
        char *bfd_get_unique_section_name(bfd *abfd,
-                                         const char *template,
+                                         const char *templat,
                                          int *count);
 
 DESCRIPTION
        Invent a section name that is unique in @var{abfd} by tacking
-       a digit suffix onto the original @var{template}.  If @var{count}
+       a digit suffix onto the original @var{templat}.  If @var{count}
        is non-NULL, then it specifies the first number tried as a
        suffix to generate a unique name.  The value pointed to by
        @var{count} will be incremented in this case.
 */
 
 char *
-bfd_get_unique_section_name (abfd, template, count)
+bfd_get_unique_section_name (abfd, templat, count)
      bfd *abfd;
-     const char *template;
+     const char *templat;
      int *count;
 {
   int num;
   unsigned int len;
   char *sname;
 
-  len = strlen (template);
+  len = strlen (templat);
   sname = bfd_malloc (len + 7);
-  strcpy (sname, template);
+  strcpy (sname, templat);
   num = 1;
   if (count != NULL)
     num = *count;