A subsequent change will introduce C99 bools, at which point 'bool'
becomes a type, and ineligible as a variable name.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
if ( sp == (COND_EXPR_MAXDEPTH - 1) )
return -1;
sp++;
- s[sp] = p->bool_val_to_struct[cur->bool - 1]->state;
+ s[sp] = p->bool_val_to_struct[cur->bool_val - 1]->state;
break;
case COND_NOT:
if ( sp < 0 )
return 0;
}
- if ( expr->bool > p->p_bools.nprim )
+ if ( expr->bool_val > p->p_bools.nprim )
{
printk("Flask: conditional expressions uses unknown bool.\n");
return 0;
goto err;
expr->expr_type = le32_to_cpu(buf[0]);
- expr->bool = le32_to_cpu(buf[1]);
+ expr->bool_val = le32_to_cpu(buf[1]);
if ( !expr_isvalid(p, expr) )
{
#define COND_NEQ 7 /* bool != bool */
#define COND_LAST COND_NEQ
__u32 expr_type;
- __u32 bool;
+ __u32 bool_val;
struct cond_expr *next;
};