diff options
author | Jesus Cea <jcea@jcea.es> | 2011-09-19 17:11:26 +0200 |
---|---|---|
committer | Jesus Cea <jcea@jcea.es> | 2011-09-19 17:11:26 +0200 |
commit | 5709b0a9933ce87f78389617abfd934fd113ba5f (patch) | |
tree | ad751c5cbc2f43440c1faf775e102decfa0f9dcb /Python/dynload_dl.c | |
parent | 66c4188b352a7c021c7b83f70d1a1e54bbed45df (diff) | |
parent | 016d82354232e8a1924135ff10fac70cf5c720b9 (diff) | |
download | cpython-5709b0a9933ce87f78389617abfd934fd113ba5f.tar.gz |
Close #13007: whichdb should recognize gdbm 1.9 magic numbers
Diffstat (limited to 'Python/dynload_dl.c')
-rw-r--r-- | Python/dynload_dl.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Python/dynload_dl.c b/Python/dynload_dl.c index 2606e1e32f..37519b23e7 100644 --- a/Python/dynload_dl.c +++ b/Python/dynload_dl.c @@ -10,17 +10,17 @@ extern char *Py_GetProgramName(void); const struct filedescr _PyImport_DynLoadFiletab[] = { - {".o", "rb", C_EXTENSION}, - {"module.o", "rb", C_EXTENSION}, - {0, 0} + {".o", "rb", C_EXTENSION}, + {"module.o", "rb", C_EXTENSION}, + {0, 0} }; -dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname, - const char *pathname, FILE *fp) +dl_funcptr _PyImport_GetDynLoadFunc(const char *shortname, + const char *pathname, FILE *fp) { - char funcname[258]; + char funcname[258]; - PyOS_snprintf(funcname, sizeof(funcname), "PyInit_%.200s", shortname); - return dl_loadmod(Py_GetProgramName(), pathname, funcname); + PyOS_snprintf(funcname, sizeof(funcname), "PyInit_%.200s", shortname); + return dl_loadmod(Py_GetProgramName(), pathname, funcname); } |