[Ocfs2-tools-commits] manish commits r981 -
trunk/ocfs2console/ocfs2interface
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Fri Jul 1 19:18:46 CDT 2005
Author: manish
Date: 2005-07-01 19:18:45 -0500 (Fri, 01 Jul 2005)
New Revision: 981
Modified:
trunk/ocfs2console/ocfs2interface/gidlemodule.c
Log:
No need to provide our own hash function. Also some minor cleanups
Modified: trunk/ocfs2console/ocfs2interface/gidlemodule.c
===================================================================
--- trunk/ocfs2console/ocfs2interface/gidlemodule.c 2005-07-02 00:18:08 UTC (rev 980)
+++ trunk/ocfs2console/ocfs2interface/gidlemodule.c 2005-07-02 00:18:45 UTC (rev 981)
@@ -112,6 +112,8 @@
PyObject *first, *callback, *cbargs = NULL, *data;
gint len;
+ CHECK_DESTROYED (self, NULL);
+
len = PyTuple_Size (args);
if (len < 1)
{
@@ -130,7 +132,7 @@
if (!PyCallable_Check (callback))
{
- PyErr_SetString(PyExc_TypeError, "first argument not callable");
+ PyErr_SetString (PyExc_TypeError, "first argument not callable");
return NULL;
}
@@ -280,12 +282,6 @@
return PyString_FromString (buf);
}
-static long
-idle_hash (Idle *self)
-{
- return (long)self->idle;
-}
-
static int
idle_clear (Idle *self)
{
@@ -347,7 +343,7 @@
0, /* tp_as_number */
0, /* tp_as_sequence */
0, /* tp_as_mapping */
- (hashfunc)idle_hash, /* tp_hash */
+ 0, /* tp_hash */
0, /* tp_call */
0, /* tp_str */
0, /* tp_getattro */
More information about the Ocfs2-tools-commits
mailing list