diff options
| author | Guido van Rossum <guido@python.org> | 1998-10-03 05:15:07 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 1998-10-03 05:15:07 +0000 |
| commit | 573788eef1a066e0ff1bc1aee3e93a0abd25b614 (patch) | |
| tree | 9c6ce5e2204a08966058c8a1cecb46bb77f7f584 /Modules | |
| parent | b6e2a99aa65bcc08c7daa6abc17dd5236a2e0ed3 (diff) | |
| download | cpython-git-573788eef1a066e0ff1bc1aee3e93a0abd25b614.tar.gz | |
No need for (char *) cast from gdbm_strerror().
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 c8e3369f07..ae716ac494 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); |
