style: remove extra const keyword from interfaces
Const variables in prototypes don't add much value, but make the code larger and redundant. Remove these const keywords. Note, this doesn't apply to pointers to const memory.
This commit is contained in:
@@ -405,7 +405,7 @@ int tls_pending(tls_t *tls)
|
||||
return SSL_pending(tls->ssl);
|
||||
}
|
||||
|
||||
int tls_read(tls_t *tls, void *const buff, const size_t len)
|
||||
int tls_read(tls_t *tls, void *buff, size_t len)
|
||||
{
|
||||
int ret;
|
||||
|
||||
@@ -415,7 +415,7 @@ int tls_read(tls_t *tls, void *const buff, const size_t len)
|
||||
return ret;
|
||||
}
|
||||
|
||||
int tls_write(tls_t *tls, const void *const buff, const size_t len)
|
||||
int tls_write(tls_t *tls, const void *buff, size_t len)
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user