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/bn | |
| 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/bn')
| -rw-r--r-- | src/lib/libcrypto/bn/bn_print.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/bn/bn_print.c b/src/lib/libcrypto/bn/bn_print.c index 1743b6a7e2..c7c407e494 100644 --- a/src/lib/libcrypto/bn/bn_print.c +++ b/src/lib/libcrypto/bn/bn_print.c | |||
| @@ -147,12 +147,12 @@ char *BN_bn2dec(const BIGNUM *a) | |||
| 147 | /* We now have a series of blocks, BN_DEC_NUM chars | 147 | /* We now have a series of blocks, BN_DEC_NUM chars |
| 148 | * in length, where the last one needs truncation. | 148 | * in length, where the last one needs truncation. |
| 149 | * The blocks need to be reversed in order. */ | 149 | * The blocks need to be reversed in order. */ |
| 150 | BIO_snprintf(p,BUF_REMAIN,BN_DEC_FMT1,*lp); | 150 | (void) snprintf(p,BUF_REMAIN,BN_DEC_FMT1,*lp); |
| 151 | while (*p) p++; | 151 | while (*p) p++; |
| 152 | while (lp != bn_data) | 152 | while (lp != bn_data) |
| 153 | { | 153 | { |
| 154 | lp--; | 154 | lp--; |
| 155 | BIO_snprintf(p,BUF_REMAIN,BN_DEC_FMT2,*lp); | 155 | (void) snprintf(p,BUF_REMAIN,BN_DEC_FMT2,*lp); |
| 156 | while (*p) p++; | 156 | while (*p) p++; |
| 157 | } | 157 | } |
| 158 | } | 158 | } |
| @@ -367,10 +367,10 @@ char *BN_options(void) | |||
| 367 | { | 367 | { |
| 368 | init++; | 368 | init++; |
| 369 | #ifdef BN_LLONG | 369 | #ifdef BN_LLONG |
| 370 | BIO_snprintf(data,sizeof data,"bn(%d,%d)", | 370 | (void) snprintf(data,sizeof data,"bn(%d,%d)", |
| 371 | (int)sizeof(BN_ULLONG)*8,(int)sizeof(BN_ULONG)*8); | 371 | (int)sizeof(BN_ULLONG)*8,(int)sizeof(BN_ULONG)*8); |
| 372 | #else | 372 | #else |
| 373 | BIO_snprintf(data,sizeof data,"bn(%d,%d)", | 373 | (void) snprintf(data,sizeof data,"bn(%d,%d)", |
| 374 | (int)sizeof(BN_ULONG)*8,(int)sizeof(BN_ULONG)*8); | 374 | (int)sizeof(BN_ULONG)*8,(int)sizeof(BN_ULONG)*8); |
| 375 | #endif | 375 | #endif |
| 376 | } | 376 | } |
