mirror of
https://github.com/RetroShare/OpenPGP-SDK.git
synced 2026-09-12 19:50:03 +05:00
Merge pull request #4 from nicoroeser/fix-c23-varname-keyword-clash
Fix variable name collision with C23 keyword ‘bool’
This commit is contained in:
commit
178aa8ebce
@ -1512,7 +1512,7 @@ static int parse_one_signature_subpacket(ops_signature_t *sig,
|
||||
ops_parser_content_t content;
|
||||
unsigned t8,t7;
|
||||
ops_boolean_t read=ops_true;
|
||||
unsigned char bool[1]="";
|
||||
unsigned char bool_[1]="";
|
||||
|
||||
ops_init_subregion(&subregion,region);
|
||||
if(!limited_read_new_length(&subregion.length,region,pinfo))
|
||||
@ -1569,9 +1569,9 @@ static int parse_one_signature_subpacket(ops_signature_t *sig,
|
||||
break;
|
||||
|
||||
case OPS_PTAG_SS_REVOCABLE:
|
||||
if(!limited_read(bool,1,&subregion,pinfo))
|
||||
if(!limited_read(bool_,1,&subregion,pinfo))
|
||||
return 0;
|
||||
C.ss_revocable.revocable=!!bool[0];
|
||||
C.ss_revocable.revocable=!!bool_[0];
|
||||
break;
|
||||
|
||||
case OPS_PTAG_SS_ISSUER_KEY_ID:
|
||||
@ -1598,9 +1598,9 @@ static int parse_one_signature_subpacket(ops_signature_t *sig,
|
||||
break;
|
||||
|
||||
case OPS_PTAG_SS_PRIMARY_USER_ID:
|
||||
if(!limited_read (bool,1,&subregion,pinfo))
|
||||
if(!limited_read (bool_,1,&subregion,pinfo))
|
||||
return 0;
|
||||
C.ss_primary_user_id.primary_user_id = !!bool[0];
|
||||
C.ss_primary_user_id.primary_user_id = !!bool_[0];
|
||||
break;
|
||||
|
||||
case OPS_PTAG_SS_KEY_FLAGS:
|
||||
|
||||
@ -475,11 +475,11 @@ static void print_duration(char *name, time_t time)
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
static void print_boolean(const char *name, unsigned char bool)
|
||||
static void print_boolean(const char *name, unsigned char bool_)
|
||||
{
|
||||
print_name(name);
|
||||
|
||||
if(bool)
|
||||
if(bool_)
|
||||
printf("Yes");
|
||||
else
|
||||
printf("No");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user