[Ocfs2-tools-commits] manish commits r613 - trunk/clusterbo

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Thu Jan 27 17:50:24 CST 2005


Author: manish
Date: 2005-01-27 17:50:21 -0600 (Thu, 27 Jan 2005)
New Revision: 613

Modified:
   trunk/clusterbo/jiterator.c
Log:
use macros for pointer<->int conversion


Modified: trunk/clusterbo/jiterator.c
===================================================================
--- trunk/clusterbo/jiterator.c	2005-01-27 23:30:20 UTC (rev 612)
+++ trunk/clusterbo/jiterator.c	2005-01-27 23:50:21 UTC (rev 613)
@@ -97,11 +97,11 @@
 {
   gpointer result;
 
-  g_return_val_if_fail (iterator != NULL, FALSE);
+  g_return_val_if_fail(iterator != NULL, FALSE);
 
   result = (*iterator->has_more_func) (iterator->context);
 
-  return (gboolean) result;
+  return (gboolean) GPOINTER_TO_INT(result);
 }  /* j_iterator_has_more() */
 
 gpointer
@@ -130,14 +130,14 @@
   GList *header, *elem;
   gboolean result;
 
-  g_return_val_if_fail (context != NULL, (gpointer) FALSE);
+  g_return_val_if_fail(context != NULL, GINT_TO_POINTER(FALSE));
 
   header = (GList *) context;
   elem = (GList *) header->data;
 
   result = (elem != NULL);
 
-  return (gpointer) result;
+  return (gpointer) GINT_TO_POINTER(result);
 }  /* j_iterator_list_has_more() */
 
 static gpointer



More information about the Ocfs2-tools-commits mailing list