Diff for /libelwix/src/pack.c between versions 1.6.2.2 and 1.6.2.3

version 1.6.2.2, 2014/02/13 14:58:55 version 1.6.2.3, 2014/02/13 15:06:44
Line 509  rpack_ruint64(rpack_t * __restrict rp, uint64_t * __re Line 509  rpack_ruint64(rpack_t * __restrict rp, uint64_t * __re
  * rpack_next() - Get and set current position   * rpack_next() - Get and set current position
  *   *
  * @rp = raw packet   * @rp = raw packet
 * @after_len = !=0 move current position after length * @after_len = move aligned current position after length
  * return: NULL error or current position   * return: NULL error or current position
  */   */
 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;
   
           if (!RPACK_SANITY(rp))
                   return NULL;
           /* No space left */
           if (!(next = rpack_align_and_reserve(rp, after_len)))
                   return NULL;
   
           cur = rp->r_next;
   
           rp->r_next = next + after_len;
           return cur;
   }
   
   /*
    * rpack_rnext() - Get and set raw current position
    *
    * @rp = raw packet
    * @after_len = !=0 move current position after length
    * return: NULL error or raw current position
    */
   uint8_t *
   rpack_rnext(rpack_t * __restrict rp, size_t after_len)
 {  {
         uint8_t *next = NULL;          uint8_t *next = NULL;
   

Removed from v.1.6.2.2  
changed lines
  Added in v.1.6.2.3


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