diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-04-13 18:06:42 -0400 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-04-13 18:06:42 -0400 |
commit | c2c9c905706160bf34aea12f2348210aac3e0da2 (patch) | |
tree | 9f7cc31fdab50fc9e80c1c9fd379e0b12414242a /Python/dynload_dl.c | |
parent | e307451be16e5bf59b38ec5aea76f68c0831fb65 (diff) | |
parent | 77795fd1f148a037c9ab583968d85bfc009bc15c (diff) | |
download | cpython-c2c9c905706160bf34aea12f2348210aac3e0da2.tar.gz |
merge 3.2
Diffstat (limited to 'Python/dynload_dl.c')
-rw-r--r-- | Python/dynload_dl.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/Python/dynload_dl.c b/Python/dynload_dl.c index 2606e1e32f..a914a0846e 100644 --- a/Python/dynload_dl.c +++ b/Python/dynload_dl.c @@ -10,17 +10,16 @@ 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}, + {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); } |