diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2014-04-15 16:21:05 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2014-04-15 16:21:05 +0000 |
commit | fcd74ba7aa271885eb12554ad9070defd36a05c9 (patch) | |
tree | eda55802f589b4c22802fb2af35147dcc283e21e /lib/libcrypto/bio/b_sock.c | |
parent | ad04ca41f9e0f0c8e6aa9159f577ff7e899d45e8 (diff) |
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 'lib/libcrypto/bio/b_sock.c')
-rw-r--r-- | lib/libcrypto/bio/b_sock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/bio/b_sock.c b/lib/libcrypto/bio/b_sock.c index 779acbaaf5a..bd433074567 100644 --- a/lib/libcrypto/bio/b_sock.c +++ b/lib/libcrypto/bio/b_sock.c @@ -916,7 +916,7 @@ int BIO_accept(int sock, char **addr) goto end; } *addr = p; - BIO_snprintf(*addr,nl,"%s:%s",h,s); + (void) snprintf(*addr,nl,"%s:%s",h,s); goto end; } while(0); #endif @@ -932,7 +932,7 @@ int BIO_accept(int sock, char **addr) } *addr=p; } - BIO_snprintf(*addr,24,"%d.%d.%d.%d:%d", + (void) snprintf(*addr,24,"%d.%d.%d.%d:%d", (unsigned char)(l>>24L)&0xff, (unsigned char)(l>>16L)&0xff, (unsigned char)(l>> 8L)&0xff, |