Add a testcase for PR ld/13839
[deliverable/binutils-gdb.git] / sim / common / hw-base.c
index 88e493e7dd4db94084dd8d509eb682cb2299d1a5..c111ff463de26f818c685b947ff2979925c8e5ab 100644 (file)
@@ -1,6 +1,6 @@
 /* The common simulator framework for GDB, the GNU Debugger.
 
-   Copyright 2002, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
+   Copyright 2002, 2007-2012 Free Software Foundation, Inc.
 
    Contributed by Andrew Cagney and Red Hat.
 
@@ -114,13 +114,13 @@ generic_hw_unit_encode (struct hw *bus,
   /* don't output anything if empty */
   if (phys->nr_cells == 0)
     {
-      strcpy(pos, "");
+      strcpy (pos, "");
       len = 0;
     }
   else if (i == phys->nr_cells)
     {
       /* all zero */
-      strcpy(pos, "0");
+      strcpy (pos, "0");
       len = 1;
     }
   else
@@ -129,14 +129,14 @@ generic_hw_unit_encode (struct hw *bus,
        {
          if (pos != buf)
            {
-             strcat(pos, ",");
-             pos = strchr(pos, '\0');
+             strcat (pos, ",");
+             pos = strchr (pos, '\0');
            }
          if (phys->cells[i] < 10)
            sprintf (pos, "%ld", (unsigned long)phys->cells[i]);
          else
            sprintf (pos, "0x%lx", (unsigned long)phys->cells[i]);
-         pos = strchr(pos, '\0');
+         pos = strchr (pos, '\0');
        }
       len = pos - buf;
     }
This page took 0.024655 seconds and 4 git commands to generate.