summaryrefslogtreecommitdiff
path: root/onlineupdate/source/libmar/sign/mar_sign.c
diff options
context:
space:
mode:
Diffstat (limited to 'onlineupdate/source/libmar/sign/mar_sign.c')
-rw-r--r--onlineupdate/source/libmar/sign/mar_sign.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/onlineupdate/source/libmar/sign/mar_sign.c b/onlineupdate/source/libmar/sign/mar_sign.c
index 4a5fe87fd402..3e7ef205d49c 100644
--- a/onlineupdate/source/libmar/sign/mar_sign.c
+++ b/onlineupdate/source/libmar/sign/mar_sign.c
@@ -159,13 +159,12 @@ WriteAndUpdateSignatures(FILE *fpDest, void *buffer,
void
AdjustIndexContentOffsets(char *indexBuf, uint32_t indexLength, uint32_t offsetAmount)
{
- uint32_t *offsetToContent;
char *indexBufLoc = indexBuf;
/* Consume the index and adjust each index by the specified amount */
while (indexBufLoc != (indexBuf + indexLength)) {
/* Adjust the offset */
- offsetToContent = (uint32_t *)indexBufLoc;
+ uint32_t* offsetToContent = (uint32_t *)indexBufLoc;
*offsetToContent = ntohl(*offsetToContent);
*offsetToContent += offsetAmount;
*offsetToContent = htonl(*offsetToContent);