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:
f3389c8
)
Move variable to block local scope, not needed elsewhere
author
Panu Matilainen
<pmatilai@redhat.com>
Tue, 8 Sep 2009 11:10:34 +0000
(14:10 +0300)
committer
Panu Matilainen
<pmatilai@redhat.com>
Wed, 9 Sep 2009 07:57:30 +0000
(10:57 +0300)
lib/header.c
patch
|
blob
|
history
diff --git
a/lib/header.c
b/lib/header.c
index
1fdff9b
..
74cee50
100644
(file)
--- a/
lib/header.c
+++ b/
lib/header.c
@@
-245,7
+245,6
@@
unsigned headerSizeof(Header h, enum hMagic magicp)
size += 2 * sizeof(int32_t); /* count of index entries */
for (i = 0, entry = h->index; i < h->indexUsed; i++, entry++) {
- unsigned diff;
rpmTagType type;
/* Regions go in as is ... */
@@
-264,7
+263,7
@@
unsigned headerSizeof(Header h, enum hMagic magicp)
/* Alignment */
type = entry->info.type;
if (typeSizes[type] > 1) {
- diff = typeSizes[type] - (size % typeSizes[type]);
+
unsigned
diff = typeSizes[type] - (size % typeSizes[type]);
if (diff != typeSizes[type]) {
size += diff;
pad += diff;