This commit was generated by cvs2svn to track changes on a CVS vendor
[deliverable/binutils-gdb.git] / sim / common / hw-handles.c
index a62c0155142b115e31d92bbe0954d7548b9fb0c4..9400ca82e92b4f29e06cc8358c956c01d9c4b21a 100644 (file)
@@ -154,7 +154,7 @@ hw_handle_add_ihandle (struct hw *hw,
                       struct hw_instance *internal)
 {
   struct hw_handle_data *db = hw->handles_of_hw;
-  if (hw_handle_2ihandle (hw, internal) != NULL
+  if (hw_handle_2ihandle (hw, internal) != 0
     {
       hw_abort (hw, "attempting to add an ihandle already in the data base");
     }
@@ -176,7 +176,7 @@ hw_handle_add_phandle (struct hw *hw,
                       struct hw *internal)
 {
   struct hw_handle_data *db = hw->handles_of_hw;
-  if (hw_handle_2phandle (hw, internal) != NULL
+  if (hw_handle_2phandle (hw, internal) != 0
     {
       hw_abort (hw, "attempting to add a phandle already in the data base");
     }
This page took 0.036226 seconds and 4 git commands to generate.