summaryrefslogtreecommitdiff
path: root/rpmio/macro.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-09-07 17:50:43 +0300
committerPanu Matilainen <pmatilai@redhat.com>2009-09-07 17:50:43 +0300
commitf634253b323933e0383ca9097a77fc0731ad766e (patch)
treee8d7c248ebd6874e5dceab2311eb6cd4a1b975cc /rpmio/macro.c
parentc50851aa990aab57f9906d29555fb6443571a318 (diff)
downloadrpm-f634253b323933e0383ca9097a77fc0731ad766e.tar.gz
rpm-f634253b323933e0383ca9097a77fc0731ad766e.tar.bz2
rpm-f634253b323933e0383ca9097a77fc0731ad766e.zip
Eliminate unused variable
Diffstat (limited to 'rpmio/macro.c')
-rw-r--r--rpmio/macro.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpmio/macro.c b/rpmio/macro.c
index 527ee8007..c87b434c4 100644
--- a/rpmio/macro.c
+++ b/rpmio/macro.c
@@ -780,7 +780,7 @@ static const char *
grabArgs(MacroBuf mb, const rpmMacroEntry me, const char * se,
const char * lastc)
{
- const char *opts, *o;
+ const char *opts;
char *args = NULL;
ARGV_t argv = NULL;
int argc = 0;
@@ -834,7 +834,7 @@ grabArgs(MacroBuf mb, const rpmMacroEntry me, const char * se,
while((c = getopt(argc, argv, opts)) != -1)
{
char *name = NULL, *body = NULL;
- if (c == '?' || (o = strchr(opts, c)) == NULL) {
+ if (c == '?' || strchr(opts, c) == NULL) {
rpmlog(RPMLOG_ERR, _("Unknown option %c in %s(%s)\n"),
(char)c, me->name, opts);
goto exit;