diff options
author | Matt Caswell <matt@openssl.org> | 2016-11-04 10:25:03 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-11-04 12:09:46 +0000 |
commit | ff04799d904ec2bfcfc3a3ca656549db2dec9068 (patch) | |
tree | 1c338f08537d42cb1d0c392ac50a644076f01f89 /ssl/packet_locl.h | |
parent | ed9fa2c74bbb9da312aa82865aeb3f9b75a8167b (diff) | |
download | openssl-ff04799d904ec2bfcfc3a3ca656549db2dec9068.zip openssl-ff04799d904ec2bfcfc3a3ca656549db2dec9068.tar.gz openssl-ff04799d904ec2bfcfc3a3ca656549db2dec9068.tar.bz2 |
Fix some style issues from libssl size_tify review
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'ssl/packet_locl.h')
-rw-r--r-- | ssl/packet_locl.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/ssl/packet_locl.h b/ssl/packet_locl.h index ec31a33..94933c1 100644 --- a/ssl/packet_locl.h +++ b/ssl/packet_locl.h @@ -164,9 +164,8 @@ __owur static ossl_inline int PACKET_get_net_2(PACKET *pkt, unsigned int *data) __owur static ossl_inline int PACKET_get_net_2_len(PACKET *pkt, size_t *data) { unsigned int i; - int ret; + int ret = PACKET_get_net_2(pkt, &i); - ret = PACKET_get_net_2(pkt, &i); if (ret) *data = (size_t)i; @@ -206,9 +205,8 @@ __owur static ossl_inline int PACKET_get_net_3(PACKET *pkt, unsigned long *data) __owur static ossl_inline int PACKET_get_net_3_len(PACKET *pkt, size_t *data) { unsigned long i; - int ret; + int ret = PACKET_get_net_3(pkt, &i); - ret = PACKET_get_net_3(pkt, &i); if (ret) *data = (size_t)i; @@ -249,9 +247,8 @@ __owur static ossl_inline int PACKET_get_net_4(PACKET *pkt, unsigned long *data) __owur static ossl_inline int PACKET_get_net_4_len(PACKET *pkt, size_t *data) { unsigned long i; - int ret; + int ret = PACKET_get_net_4(pkt, &i); - ret = PACKET_get_net_4(pkt, &i); if (ret) *data = (size_t)i; @@ -285,9 +282,8 @@ __owur static ossl_inline int PACKET_get_1(PACKET *pkt, unsigned int *data) __owur static ossl_inline int PACKET_get_1_len(PACKET *pkt, size_t *data) { unsigned int i; - int ret; + int ret = PACKET_get_1(pkt, &i); - ret = PACKET_get_1(pkt, &i); if (ret) *data = (size_t)i; |