Change name of kdb function-table symbol from being derived from the
authorKen Raeburn <raeburn@mit.edu>
Tue, 25 Apr 2006 05:09:48 +0000 (05:09 +0000)
committerKen Raeburn <raeburn@mit.edu>
Tue, 25 Apr 2006 05:09:48 +0000 (05:09 +0000)
name of the library file (which may not be acceptable as a C symbol
name anyways) to "kdb_function_table" always.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17957 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/kdb/kdb5.c
src/plugins/kdb/db2/db2.exports
src/plugins/kdb/db2/db2_exp.c

index ce66474a882a9f46af6541aa082e5ab863ff47b6..e80259f9fa924be916e46f9a0e890b1d3c67e3d3 100644 (file)
@@ -356,10 +356,8 @@ kdb_load_library(krb5_context kcontext, char *lib_name, db_library * lib)
        (*lib)->dl_handle = dlopen(dl_name, RTLD_NOW);
        if ((*lib)->dl_handle) {
            /* found the module */
-           sprintf(dl_name, "krb5_db_vftabl_%s", lib_name);
-
            dlerror();
-           vftabl_addr = dlsym((*lib)->dl_handle, dl_name);
+           vftabl_addr = dlsym((*lib)->dl_handle, "kdb_function_table");
            if (vftabl_addr) {
                memcpy(&(*lib)->vftabl, vftabl_addr, sizeof(kdb_vftabl));
 
index 25320ff7295de829e6e37f169147c335e4568cf1..f2b7c11195fab1bc518d483e2fac0db62969648a 100644 (file)
@@ -1 +1 @@
-krb5_db_vftabl_db2
+kdb_function_table
index 8938c6d4af64d50db44ba74e11b34fab718c3a88..a84e55a192acde983409e2679589006df8c99a64 100644 (file)
@@ -216,7 +216,7 @@ hack_cleanup (void)
  *      Exposed API
  */
 
-kdb_vftabl krb5_db_vftabl_db2 = {
+kdb_vftabl kdb_function_table = {
   1,                                      /* major version number 1 */
   0,                                      /* minor version number 0 */
   /* init_library */                          hack_init,