[hipl-commit] [trunk] Rev 4300: Do not pointlessly cast the pointer passed to free().

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Fri, 16 Apr 2010 00:31:06 +0300

Committer: Diego Biurrun <diego@xxxxxxxxxx>
Date: 16/04/2010 at 00:31:06
Revision: 4300
Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  Do not pointlessly cast the pointer passed to free().

Modified:
  M  test/hashtest.c

=== modified file 'test/hashtest.c'
--- test/hashtest.c     2010-04-15 20:47:19 +0000
+++ test/hashtest.c     2010-04-15 21:30:33 +0000
@@ -123,7 +123,7 @@
 //      if (atomic_read(&item->refcnt) > 2)
 //          HIP_ERROR("socketdb: %p, in use while removing it from 
socketdb\n", item);
         //hip_socketdb_put_entry(item);
-        free((void *) list_entry(item));
+        free(list_entry(item));
     }
 //}

Other related posts:

  • » [hipl-commit] [trunk] Rev 4300: Do not pointlessly cast the pointer passed to free(). - Diego Biurrun