Diff for /libelwix/src/pack.c between versions 1.8 and 1.9

version 1.8, 2015/06/25 17:53:50 version 1.9, 2022/04/13 21:24:48
Line 12  terms: Line 12  terms:
 All of the documentation and software included in the ELWIX and AITNET  All of the documentation and software included in the ELWIX and AITNET
 Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>  Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>
   
Copyright 2004 - 2015Copyright 2004 - 2022
         by Michael Pounov <misho@elwix.org>.  All rights reserved.          by Michael Pounov <misho@elwix.org>.  All rights reserved.
   
 Redistribution and use in source and binary forms, with or without  Redistribution and use in source and binary forms, with or without
Line 587  rpack_ruint64(rpack_t * __restrict rp, uint64_t * __re Line 587  rpack_ruint64(rpack_t * __restrict rp, uint64_t * __re
 uint8_t *  uint8_t *
 rpack_next(rpack_t * __restrict rp, size_t after_len)  rpack_next(rpack_t * __restrict rp, size_t after_len)
 {  {
        uint8_t *cur = NULL, *next = NULL;        uint8_t *next = NULL;
   
         if (!RPACK_SANITY(rp))          if (!RPACK_SANITY(rp))
                 return NULL;                  return NULL;
Line 595  rpack_next(rpack_t * __restrict rp, size_t after_len) Line 595  rpack_next(rpack_t * __restrict rp, size_t after_len)
         if (!(next = rpack_align_and_reserve(rp, after_len)))          if (!(next = rpack_align_and_reserve(rp, after_len)))
                 return NULL;                  return NULL;
   
         cur = rp->r_next;  
   
         rp->r_next = next + after_len;          rp->r_next = next + after_len;
        return cur;        return next;
 }  }
   
 /*  /*

Removed from v.1.8  
changed lines
  Added in v.1.9


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>