aboutsummaryrefslogtreecommitdiff
path: root/ssl/packet_locl.h
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2015-08-03 17:20:47 +0100
committerMatt Caswell <matt@openssl.org>2015-08-13 20:34:51 +0100
commitbc6616a4347d4c30bce1d1918da09f09f84c0403 (patch)
treec7fc9a59f688b9a1fd7ec2e4e5864d0705e99272 /ssl/packet_locl.h
parentf9f6053442a2918d0445866252256b2cb54a1187 (diff)
downloadopenssl-bc6616a4347d4c30bce1d1918da09f09f84c0403.zip
openssl-bc6616a4347d4c30bce1d1918da09f09f84c0403.tar.gz
openssl-bc6616a4347d4c30bce1d1918da09f09f84c0403.tar.bz2
Enhance PACKET readability
Enhance the PACKET code readability, and fix a stale comment. Thanks to Ben Kaduk (bkaduk@akamai.com) for pointing this out. Reviewed-by: Emilia Käsper <emilia@openssl.org>
Diffstat (limited to 'ssl/packet_locl.h')
-rw-r--r--ssl/packet_locl.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/ssl/packet_locl.h b/ssl/packet_locl.h
index 80d0b93..a5e4d00 100644
--- a/ssl/packet_locl.h
+++ b/ssl/packet_locl.h
@@ -80,8 +80,7 @@ typedef struct {
} PACKET;
/*
- * Returns 1 if there are exactly |len| bytes left to be read from |pkt|
- * and 0 otherwise
+ * Returns the number of bytes remaining to be read in the PACKET
*/
__owur static inline size_t PACKET_remaining(PACKET *pkt)
{