--- projects/pystatgrab/_statgrab.pyx 2004/03/06 22:11:22 1.9 +++ projects/pystatgrab/_statgrab.pyx 2004/03/20 21:29:59 1.10 @@ -17,7 +17,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # -# $Id: _statgrab.pyx,v 1.9 2004/03/06 22:11:22 tdb Exp $ +# $Id: _statgrab.pyx,v 1.10 2004/03/20 21:29:59 tdb Exp $ # ctypedef long time_t @@ -437,7 +437,13 @@ def py_get_page_stats_diff(): ) def py_statgrab_init(): - return statgrab_init() + if statgrab_init() == 0: + return True + else: + return False def py_statgrab_drop_privileges(): - return statgrab_drop_privileges() + if statgrab_drop_privileges() == 0: + return True + else: + return False