--- libelwix/src/pack.c 2015/06/25 17:53:50 1.8 +++ libelwix/src/pack.c 2022/04/13 21:21:08 1.8.66.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: pack.c,v 1.8 2015/06/25 17:53:50 misho Exp $ +* $Id: pack.c,v 1.8.66.1 2022/04/13 21:21:08 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004 - 2015 +Copyright 2004 - 2022 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -587,7 +587,7 @@ rpack_ruint64(rpack_t * __restrict rp, uint64_t * __re uint8_t * rpack_next(rpack_t * __restrict rp, size_t after_len) { - uint8_t *cur = NULL, *next = NULL; + uint8_t *next = NULL; if (!RPACK_SANITY(rp)) return NULL; @@ -595,10 +595,8 @@ rpack_next(rpack_t * __restrict rp, size_t after_len) if (!(next = rpack_align_and_reserve(rp, after_len))) return NULL; - cur = rp->r_next; - rp->r_next = next + after_len; - return cur; + return next; } /*