declare function static

Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
This commit is contained in:
Steffen Jaeckel
2021-10-23 15:15:18 +02:00
parent e26548375e
commit 2dc20d13fb
2 changed files with 9 additions and 9 deletions

View File

@@ -20,11 +20,11 @@
#define KA_INTERVAL 1 #define KA_INTERVAL 1
/* define a handler for connection events */ /* define a handler for connection events */
void conn_handler(xmpp_conn_t *conn, static void conn_handler(xmpp_conn_t *conn,
xmpp_conn_event_t status, xmpp_conn_event_t status,
int error, int error,
xmpp_stream_error_t *stream_error, xmpp_stream_error_t *stream_error,
void *userdata) void *userdata)
{ {
xmpp_ctx_t *ctx = (xmpp_ctx_t *)userdata; xmpp_ctx_t *ctx = (xmpp_ctx_t *)userdata;
int secured; int secured;

View File

@@ -123,10 +123,10 @@ static int _tls_get_id_on_xmppaddr(xmpp_conn_t *conn,
return GNUTLS_E_X509_UNKNOWN_SAN; return GNUTLS_E_X509_UNKNOWN_SAN;
} }
int _tls_id_on_xmppaddr(xmpp_conn_t *conn, static int _tls_id_on_xmppaddr(xmpp_conn_t *conn,
gnutls_x509_crt_t cert, gnutls_x509_crt_t cert,
unsigned int n, unsigned int n,
char **ret) char **ret)
{ {
int res = GNUTLS_E_SUCCESS; int res = GNUTLS_E_SUCCESS;
unsigned int i, j; unsigned int i, j;