summaryrefslogtreecommitdiff
path: root/lib/rpmplugins.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2011-04-19 10:21:26 +0300
committerPanu Matilainen <pmatilai@redhat.com>2011-04-19 10:21:26 +0300
commit92ccb5f822c6b8889dbb784182f5da82f88f6102 (patch)
treeb13120df8a6f1002cd1e7f009e4469a3393abd73 /lib/rpmplugins.c
parente4124b08060bc418ef5c332653aa9587d52c80fc (diff)
downloadlibrpm-tizen-92ccb5f822c6b8889dbb784182f5da82f88f6102.tar.gz
librpm-tizen-92ccb5f822c6b8889dbb784182f5da82f88f6102.tar.bz2
librpm-tizen-92ccb5f822c6b8889dbb784182f5da82f88f6102.zip
Eliminate unused variable in rpmpluginsAdd()
- dlsym() can return NULL without it being an error, and since we use dlerror() for determining the error anyway, supportedHooks is simply unneeded here.
Diffstat (limited to 'lib/rpmplugins.c')
-rw-r--r--lib/rpmplugins.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/rpmplugins.c b/lib/rpmplugins.c
index e34019a2e..9098aa5ca 100644
--- a/lib/rpmplugins.c
+++ b/lib/rpmplugins.c
@@ -52,7 +52,6 @@ rpmPlugins rpmpluginsNew(rpmts ts)
rpmRC rpmpluginsAdd(rpmPlugins plugins, const char *name, const char *path,
const char *opts)
{
- rpmPluginHook *supportedHooks;
char *error;
void *handle = dlopen(path, RTLD_LAZY);
@@ -62,7 +61,7 @@ rpmRC rpmpluginsAdd(rpmPlugins plugins, const char *name, const char *path,
}
/* make sure the plugin has the supported hooks flag */
- supportedHooks = (rpmPluginHook *) dlsym(handle, STR(PLUGIN_HOOKS));
+ (void) dlsym(handle, STR(PLUGIN_HOOKS));
if ((error = dlerror()) != NULL) {
rpmlog(RPMLOG_ERR, _("Failed to resolve symbol %s: %s\n"),
STR(PLUGIN_HOOKS), error);