From 79a81f9bea4b0982e1966b47def92793ebddf10b Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Fri, 4 Mar 2011 13:27:15 +0200 Subject: [PATCH] Eliminate unused variable - We're not expecting anything in return from rpmtsNotify() in fsm either, so just ignore the returns... --- lib/fsm.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/fsm.c b/lib/fsm.c index 697cd42..008092e 100644 --- a/lib/fsm.c +++ b/lib/fsm.c @@ -626,10 +626,9 @@ int fsmSetup(FSM_t fsm, fileStage goal, fsm->digestalgo = rpmfiDigestAlgo(fi); if (fsm->goal == FSM_PKGINSTALL || fsm->goal == FSM_PKGBUILD) { - void * ptr; fsm->archivePos = 0; - ptr = rpmtsNotify(ts, te, - RPMCALLBACK_INST_START, fsm->archivePos, fi->archiveSize); + rpmtsNotify(ts, te, RPMCALLBACK_INST_START, + fsm->archivePos, fi->archiveSize); } fsm->archiveSize = archiveSize; @@ -1883,10 +1882,9 @@ if (!(fsm->mapFlags & CPIO_ALL_HARDLINKS)) break; rpmts ts = fsmGetTs(fsm); rpmte te = fsmGetTe(fsm); rpmfi fi = fsmGetFi(fsm); - void * ptr; if (fsm->cpioPos > fsm->archivePos) { fsm->archivePos = fsm->cpioPos; - ptr = rpmtsNotify(ts, te, RPMCALLBACK_INST_PROGRESS, + rpmtsNotify(ts, te, RPMCALLBACK_INST_PROGRESS, fsm->archivePos, fi->archiveSize); } } -- 2.7.4