Don't include <string.h>. Don't compare strchr result to NULL.
authorIan Lance Taylor <ian@gcc.gnu.org>
Tue, 30 Jan 1996 18:32:39 +0000 (18:32 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Tue, 30 Jan 1996 18:32:39 +0000 (18:32 +0000)
From-SVN: r11125

gcc/dbxout.c

index 256d1aa11744fdcd505b4e112d8bf295e0c275cb..3ff1a2ca0c61257cd9ec9e5b3e5ab13d69175b00 100644 (file)
@@ -70,7 +70,6 @@ Boston, MA 02111-1307, USA.  */
 /* Include these first, because they may define MIN and MAX.  */
 #include <stdio.h>
 #include <errno.h>
-#include <string.h>
 
 #include "config.h"
 #include "tree.h"
@@ -932,7 +931,7 @@ dbxout_type_methods (type)
 #else
              marker = '.';
 #endif
-             if (strchr (debug_name, marker) != NULL)
+             if (strchr (debug_name, marker))
                show_arg_types = 1;
              /* Detect ordinary methods because their mangled names
                 start with the operation name.  */