Issue #3080: Remove unused argument of _PyImport_GetDynLoadFunc()

The first argument, fqname, was not used.
This commit is contained in:
Victor Stinner 2011-02-22 23:16:19 +00:00
parent 9b99b448f7
commit 42040fb665
8 changed files with 10 additions and 11 deletions

View file

@ -12,8 +12,7 @@
#include "importdl.h"
extern dl_funcptr _PyImport_GetDynLoadFunc(const char *name,
const char *shortname,
extern dl_funcptr _PyImport_GetDynLoadFunc(const char *shortname,
const char *pathname, FILE *fp);
@ -48,7 +47,7 @@ _PyImport_LoadDynamicModule(char *name, char *pathname, FILE *fp)
shortname = lastdot+1;
}
p0 = _PyImport_GetDynLoadFunc(name, shortname, pathname, fp);
p0 = _PyImport_GetDynLoadFunc(shortname, pathname, fp);
p = (PyObject*(*)(void))p0;
if (PyErr_Occurred())
goto error;