diff options
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/gdbmmodule.c | 8 |
1 files 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); |