提交 741e600c 编写于 作者: B Bodo Möller

Use signed type where -1 may be returned.

上级 bb2276ab
...@@ -205,7 +205,7 @@ static int bio_read(BIO *bio, char *buf, int size_) ...@@ -205,7 +205,7 @@ static int bio_read(BIO *bio, char *buf, int size_)
*/ */
/* WARNING: The non-copying interface is largely untested as of yet /* WARNING: The non-copying interface is largely untested as of yet
* and may contain bugs. */ * and may contain bugs. */
static size_t bio_nread0(BIO *bio, char **buf) static ssize_t bio_nread0(BIO *bio, char **buf)
{ {
struct bio_bio_st *b, *peer_b; struct bio_bio_st *b, *peer_b;
size_t num; size_t num;
...@@ -243,7 +243,7 @@ static size_t bio_nread0(BIO *bio, char **buf) ...@@ -243,7 +243,7 @@ static size_t bio_nread0(BIO *bio, char **buf)
return num; return num;
} }
static size_t bio_nread(BIO *bio, char **buf, size_t num) static ssize_t bio_nread(BIO *bio, char **buf, size_t num)
{ {
struct bio_bio_st *b, *peer_b; struct bio_bio_st *b, *peer_b;
size_t available; size_t available;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册