projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
472e569
)
Eliminate redundant local variable in headerLoad()
author
Panu Matilainen
<pmatilai@redhat.com>
Tue, 4 Oct 2011 11:59:49 +0000
(14:59 +0300)
committer
Panu Matilainen
<pmatilai@redhat.com>
Tue, 4 Oct 2011 11:59:49 +0000
(14:59 +0300)
lib/header.c
patch
|
blob
|
history
diff --git
a/lib/header.c
b/lib/header.c
index
b01d1e4
..
ba63de4
100644
(file)
--- a/
lib/header.c
+++ b/
lib/header.c
@@
-786,7
+786,6
@@
Header headerLoad(void * uh)
int32_t dl = ntohl(ei[1]); /* data length */
size_t pvlen = sizeof(il) + sizeof(dl) +
(il * sizeof(struct entryInfo_s)) + dl;
- void * pv = uh;
Header h = NULL;
entryInfo pe;
unsigned char * dataStart;
@@
-798,7
+797,6
@@
Header headerLoad(void * uh)
if (hdrchkTags(il) || hdrchkData(dl))
goto errxit;
- ei = (int32_t *) pv;
pe = (entryInfo) &ei[2];
dataStart = (unsigned char *) (pe + il);
dataEnd = dataStart + dl;