Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 92a8022

Browse files
committed
sslclient: do not compile unused static function
1 parent b0f6711 commit 92a8022

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎libraries/SSLClient/src/ssl_client.cpp‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ static int _handle_error(int err, const char * file, int line)
3838

3939
#define handle_error(e) _handle_error(e, __FUNCTION__, __LINE__)
4040

41+
#if defined(SSL_CLIENT_RECV_DISABLE_TIMEOUT)
4142
/**
4243
* \brief Read at most 'len' characters. If no error occurs,
4344
* the actual amount read is returned.
@@ -71,8 +72,8 @@ static int client_net_recv( void *ctx, unsigned char *buf, size_t len ) {
7172

7273
return result;
7374
}
74-
75-
int client_net_recv_timeout( void *ctx, unsigned char *buf,
75+
#else
76+
staticint client_net_recv_timeout( void *ctx, unsigned char *buf,
7677
size_t len, uint32_t timeout ) {
7778
Client *client = (Client*)ctx;
7879
if (!client) {
@@ -105,7 +106,7 @@ int client_net_recv_timeout( void *ctx, unsigned char *buf,
105106

106107
return result;
107108
}
108-
109+
#endif
109110

110111
/**
111112
* \brief Write at most 'len' characters. If no error occurs,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /