From 573788eef1a066e0ff1bc1aee3e93a0abd25b614 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sat, 3 Oct 1998 05:15:07 +0000 Subject: No need for (char *) cast from gdbm_strerror(). --- Modules/gdbmmodule.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Modules/gdbmmodule.c b/Modules/gdbmmodule.c index c8e3369f..ae716ac 100644 --- a/Modules/gdbmmodule.c +++ b/Modules/gdbmmodule.c @@ -102,8 +102,7 @@ int mode; if (errno != 0) PyErr_SetFromErrno(DbmError); else - PyErr_SetString(DbmError, - (char *) gdbm_strerror(gdbm_errno)); + PyErr_SetString(DbmError, gdbm_strerror(gdbm_errno)); Py_DECREF(dp); return NULL; } @@ -203,7 +202,7 @@ PyObject *v, *w; PyErr_SetFromErrno(DbmError); else PyErr_SetString(DbmError, - (char *) gdbm_strerror(gdbm_errno)); + gdbm_strerror(gdbm_errno)); return -1; } } @@ -384,8 +383,7 @@ PyObject *args; if (errno != 0) PyErr_SetFromErrno(DbmError); else - PyErr_SetString(DbmError, - (char *) gdbm_strerror(gdbm_errno)); + PyErr_SetString(DbmError, gdbm_strerror(gdbm_errno)); return NULL; } Py_INCREF(Py_None); -- cgit v0.12