diff Python/importdl.c @ 68108:0874698b1201

Issue #3080: Remove unused argument of _PyImport_GetDynLoadFunc() The first argument, fqname, was not used.
author Victor Stinner <victor.stinner@haypocalc.com>
date Tue, 22 Feb 2011 23:16:19 +0000
parents fd5135cbd928
children 2425717c6430
line wrap: on
line diff
--- a/Python/importdl.c	Tue Feb 22 23:12:28 2011 +0000
+++ b/Python/importdl.c	Tue Feb 22 23:16:19 2011 +0000
@@ -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 @@
         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;