Ignore:
Timestamp:
Oct 29, 2008, 10:31:35 PM (17 years ago)
Author:
bird
Message:

variaiable::value_alloc_len -> unsigned int.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/variable.h

    r1993 r1997  
    5454#define EXP_COUNT_BITS  15      /* This gets all the bitfields into 32 bits */
    5555#define EXP_COUNT_MAX   ((1<<EXP_COUNT_BITS)-1)
     56#ifdef CONFIG_WITH_VALUE_LENGTH
     57#define VAR_ALIGN_VALUE_ALLOC(len)  ( ((len) + (unsigned int)31) & ~(unsigned int)31 )
     58#endif
    5659
    5760struct variable
     
    6568#ifdef CONFIG_WITH_VALUE_LENGTH
    6669    int value_length;           /* The length of the value, usually unused.  */
    67     int value_alloc_len;        /* The amount of memory we've actually allocated. */
     70    unsigned int value_alloc_len; /* The amount of memory we've actually allocated. */
    6871    /* FIXME: make lengths unsigned! */
    6972#endif
Note: See TracChangeset for help on using the changeset viewer.