diff options
| author | beck <> | 2014-04-15 16:21:04 +0000 |
|---|---|---|
| committer | beck <> | 2014-04-15 16:21:04 +0000 |
| commit | 815e93e74514b0f699488f372d491cf84236cd99 (patch) | |
| tree | 8c2058c07d3cdac3caf00950e53159c1c251f257 /src/lib/libcrypto/asn1/asn1_par.c | |
| parent | 6faa9226dd4494c01448085044adc07001ba4ca0 (diff) | |
| download | openbsd-815e93e74514b0f699488f372d491cf84236cd99.tar.gz openbsd-815e93e74514b0f699488f372d491cf84236cd99.tar.bz2 openbsd-815e93e74514b0f699488f372d491cf84236cd99.zip | |
Part 1 of eliminating BIO_snprintf(). This fixes mechanical conversions
where the return value is ignored changing to (void) snprintf.
ok deraadt@
Diffstat (limited to 'src/lib/libcrypto/asn1/asn1_par.c')
| -rw-r--r-- | src/lib/libcrypto/asn1/asn1_par.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/asn1/asn1_par.c b/src/lib/libcrypto/asn1/asn1_par.c index aaca69aebd..29b0ba46b5 100644 --- a/src/lib/libcrypto/asn1/asn1_par.c +++ b/src/lib/libcrypto/asn1/asn1_par.c | |||
| @@ -82,13 +82,13 @@ static int asn1_print_info(BIO *bp, int tag, int xclass, int constructed, | |||
| 82 | 82 | ||
| 83 | p=str; | 83 | p=str; |
| 84 | if ((xclass & V_ASN1_PRIVATE) == V_ASN1_PRIVATE) | 84 | if ((xclass & V_ASN1_PRIVATE) == V_ASN1_PRIVATE) |
| 85 | BIO_snprintf(str,sizeof str,"priv [ %d ] ",tag); | 85 | (void) snprintf(str,sizeof str,"priv [ %d ] ",tag); |
| 86 | else if ((xclass & V_ASN1_CONTEXT_SPECIFIC) == V_ASN1_CONTEXT_SPECIFIC) | 86 | else if ((xclass & V_ASN1_CONTEXT_SPECIFIC) == V_ASN1_CONTEXT_SPECIFIC) |
| 87 | BIO_snprintf(str,sizeof str,"cont [ %d ]",tag); | 87 | (void) snprintf(str,sizeof str,"cont [ %d ]",tag); |
| 88 | else if ((xclass & V_ASN1_APPLICATION) == V_ASN1_APPLICATION) | 88 | else if ((xclass & V_ASN1_APPLICATION) == V_ASN1_APPLICATION) |
| 89 | BIO_snprintf(str,sizeof str,"appl [ %d ]",tag); | 89 | (void) snprintf(str,sizeof str,"appl [ %d ]",tag); |
| 90 | else if (tag > 30) | 90 | else if (tag > 30) |
| 91 | BIO_snprintf(str,sizeof str,"<ASN1 %d>",tag); | 91 | (void) snprintf(str,sizeof str,"<ASN1 %d>",tag); |
| 92 | else | 92 | else |
| 93 | p = ASN1_tag2str(tag); | 93 | p = ASN1_tag2str(tag); |
| 94 | 94 | ||
