Removed superflous code.
[deliverable/binutils-gdb.git] / gdb / stuff.c
index c30f1dfc7a92b0033f1008ee4504f27a6e45c974..eedbeab999865c16cb9836ab3acae5bbbadd69b0 100644 (file)
@@ -15,14 +15,14 @@ GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
 /* Written 13-Mar-86 by David Bridgham. */
 
 #include <stdio.h>
 #include <a.out.h>
 #include <sys/types.h>
-#include <sys/stat.h>
+#include "gdb_stat.h"
 #include <sys/file.h>
 #include <varargs.h>
 
@@ -47,7 +47,7 @@ main (argc, argv)
   outfile = 0;
   for (i = 1; i < argc; i++)
     {
-      if (strcmp (argv[i], "-o") == 0)
+      if (STREQ (argv[i], "-o"))
        outfile = argv[++i];
     }
   if (outfile == 0)
@@ -66,7 +66,7 @@ main (argc, argv)
    * that name the output file. */
   for (i = 1; i < argc; i++)
     {
-      if (strcmp (argv[i], "-o") == 0)
+      if (STREQ (argv[i], "-o"))
        continue;
       if ((in_fd = open (argv[i], O_RDONLY)) < 0)
        err ("Error opening %s for read: %s\n", argv[i],
@@ -152,7 +152,7 @@ find_symbol (sym_name, symbol_table, length, strings)
       {
        if ((sym->n_type & N_TYPE) != N_DATA) continue;
        if (sym->n_un.n_strx == 0) continue;
-       if (strcmp (sym_name, strings + sym->n_un.n_strx - 4) == 0)
+       if (STREQ (sym_name, strings + sym->n_un.n_strx - 4))
          return sym->n_value;
       }
     err ("Data symbol %s not found in %s\n", sym_name, file);
@@ -168,7 +168,7 @@ err (va_alist)
 
   va_start (args);
   string = va_arg (args, char *);
-  vfprintf (stderr, string, args);
+  vfprintf (gdb_stderr, string, args);
   va_end (args);
   exit (-1);
 }
This page took 0.024161 seconds and 4 git commands to generate.