diff options
author | Guido van Rossum <guido@python.org> | 1998-10-03 05:15:07 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-10-03 05:15:07 (GMT) |
commit | 573788eef1a066e0ff1bc1aee3e93a0abd25b614 (patch) | |
tree | 9c6ce5e2204a08966058c8a1cecb46bb77f7f584 /Modules/gdbmmodule.c | |
parent | b6e2a99aa65bcc08c7daa6abc17dd5236a2e0ed3 (diff) | |
download | cpython-573788eef1a066e0ff1bc1aee3e93a0abd25b614.zip cpython-573788eef1a066e0ff1bc1aee3e93a0abd25b614.tar.gz cpython-573788eef1a066e0ff1bc1aee3e93a0abd25b614.tar.bz2 |
No need for (char *) cast from gdbm_strerror().
Diffstat (limited to 'Modules/gdbmmodule.c')
-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); |