Skip to content

Commit 42040fb

Browse files
author
Victor Stinner
committed
Issue python#3080: Remove unused argument of _PyImport_GetDynLoadFunc()
The first argument, fqname, was not used.
1 parent 9b99b44 commit 42040fb

8 files changed

Lines changed: 10 additions & 11 deletions

File tree

Python/dynload_aix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ aix_loaderror(const char *pathname)
154154
}
155155

156156

157-
dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname,
157+
dl_funcptr _PyImport_GetDynLoadFunc(const char *shortname,
158158
const char *pathname, FILE *fp)
159159
{
160160
dl_funcptr p;

Python/dynload_dl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const struct filedescr _PyImport_DynLoadFiletab[] = {
1616
};
1717

1818

19-
dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname,
19+
dl_funcptr _PyImport_GetDynLoadFunc(const char *shortname,
2020
const char *pathname, FILE *fp)
2121
{
2222
char funcname[258];

Python/dynload_hpux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const struct filedescr _PyImport_DynLoadFiletab[] = {
1919
{0, 0}
2020
};
2121

22-
dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname,
22+
dl_funcptr _PyImport_GetDynLoadFunc(const char *shortname,
2323
const char *pathname, FILE *fp)
2424
{
2525
dl_funcptr p;

Python/dynload_next.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ const struct filedescr _PyImport_DynLoadFiletab[] = {
3131
#define LINKOPTIONS NSLINKMODULE_OPTION_BINDNOW| \
3232
NSLINKMODULE_OPTION_RETURN_ON_ERROR|NSLINKMODULE_OPTION_PRIVATE
3333
#endif
34-
dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname,
35-
const char *pathname, FILE *fp)
34+
dl_funcptr _PyImport_GetDynLoadFunc(const char *shortname,
35+
const char *pathname, FILE *fp)
3636
{
3737
dl_funcptr p = NULL;
3838
char funcname[258];

Python/dynload_os2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const struct filedescr _PyImport_DynLoadFiletab[] = {
1515
{0, 0}
1616
};
1717

18-
dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname,
18+
dl_funcptr _PyImport_GetDynLoadFunc(const char *shortname,
1919
const char *pathname, FILE *fp)
2020
{
2121
dl_funcptr p;

Python/dynload_shlib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ static struct {
7575
static int nhandles = 0;
7676

7777

78-
dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname,
78+
dl_funcptr _PyImport_GetDynLoadFunc(const char *shortname,
7979
const char *pathname, FILE *fp)
8080
{
8181
dl_funcptr p;

Python/dynload_win.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ static char *GetPythonImport (HINSTANCE hModule)
171171
return NULL;
172172
}
173173

174-
dl_funcptr _PyImport_GetDynLoadFunc(const char *fqname, const char *shortname,
174+
dl_funcptr _PyImport_GetDynLoadFunc(const char *shortname,
175175
const char *pathname, FILE *fp)
176176
{
177177
dl_funcptr p;

Python/importdl.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212

1313
#include "importdl.h"
1414

15-
extern dl_funcptr _PyImport_GetDynLoadFunc(const char *name,
16-
const char *shortname,
15+
extern dl_funcptr _PyImport_GetDynLoadFunc(const char *shortname,
1716
const char *pathname, FILE *fp);
1817

1918

@@ -48,7 +47,7 @@ _PyImport_LoadDynamicModule(char *name, char *pathname, FILE *fp)
4847
shortname = lastdot+1;
4948
}
5049

51-
p0 = _PyImport_GetDynLoadFunc(name, shortname, pathname, fp);
50+
p0 = _PyImport_GetDynLoadFunc(shortname, pathname, fp);
5251
p = (PyObject*(*)(void))p0;
5352
if (PyErr_Occurred())
5453
goto error;

0 commit comments

Comments
 (0)