diff options
Diffstat (limited to 'gmodule/gmodule-ar.c')
-rw-r--r-- | gmodule/gmodule-ar.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/gmodule/gmodule-ar.c b/gmodule/gmodule-ar.c index 8c3f15042..8289f529f 100644 --- a/gmodule/gmodule-ar.c +++ b/gmodule/gmodule-ar.c @@ -1,6 +1,8 @@ /* GMODULE - GLIB wrapper code for dynamic module loading * Copyright (C) 1998, 2000 Tim Janik * + * SPDX-License-Identifier: LGPL-2.1-or-later + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either @@ -165,18 +167,3 @@ _g_module_symbol (gpointer handle, return p; } - -static gchar* -_g_module_build_path (const gchar *directory, - const gchar *module_name) -{ - if (directory && *directory) { - if (strncmp (module_name, "lib", 3) == 0) - return g_strconcat (directory, "/", module_name, NULL); - else - return g_strconcat (directory, "/lib", module_name, "." G_MODULE_SUFFIX, NULL); - } else if (strncmp (module_name, "lib", 3) == 0) - return g_strdup (module_name); - else - return g_strconcat ("lib", module_name, "." G_MODULE_SUFFIX, NULL); -} |