diff options
author | Christian Heimes <christian@cheimes.de> | 2013-12-05 23:20:00 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-12-05 23:20:00 (GMT) |
commit | 8ff6f3e895066ebf9f97106248fc0013be6b23ab (patch) | |
tree | ac8fd2d2cad9a93731c1462a6fc94e27d55d44da /Modules/_dbmmodule.c | |
parent | 710280b6d63fe7a1d6eef564b4fce7681209ec20 (diff) | |
download | cpython-8ff6f3e895066ebf9f97106248fc0013be6b23ab.zip cpython-8ff6f3e895066ebf9f97106248fc0013be6b23ab.tar.gz cpython-8ff6f3e895066ebf9f97106248fc0013be6b23ab.tar.bz2 |
Issue #19296: Silence compiler warning in dbm_open.
Some dbm header files declare the first argument as char * instead of a const char *.
Diffstat (limited to 'Modules/_dbmmodule.c')
-rw-r--r-- | Modules/_dbmmodule.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/_dbmmodule.c b/Modules/_dbmmodule.c index 10f8fb9..f9a0e5e 100644 --- a/Modules/_dbmmodule.c +++ b/Modules/_dbmmodule.c @@ -66,7 +66,8 @@ newdbmobject(const char *file, int flags, int mode) if (dp == NULL) return NULL; dp->di_size = -1; - if ( (dp->di_dbm = dbm_open(file, flags, mode)) == 0 ) { + /* See issue #19296 */ + if ( (dp->di_dbm = dbm_open((char *)file, flags, mode)) == 0 ) { PyErr_SetFromErrno(DbmError); Py_DECREF(dp); return NULL; |