Fixed occurred spelling error fixes: #96

This commit is contained in:
Dariusz Dwornikowski
2016-09-23 08:31:31 +02:00
parent 9931ad4fa2
commit d1a41c9d7d
2 changed files with 6 additions and 6 deletions

View File

@@ -104,8 +104,8 @@ void xmpp_run_once(xmpp_ctx_t *ctx, const unsigned long timeout)
ret = tls_clear_pending_write(conn->tls);
if (ret < 0 && !tls_is_recoverable(tls_error(conn->tls))) {
/* an error occured */
xmpp_debug(ctx, "xmpp", "Send error occured, disconnecting.");
/* an error occurred */
xmpp_debug(ctx, "xmpp", "Send error occurred, disconnecting.");
conn->error = ECONNABORTED;
conn_disconnect(conn);
}
@@ -120,7 +120,7 @@ void xmpp_run_once(xmpp_ctx_t *ctx, const unsigned long timeout)
ret = tls_write(conn->tls, &sq->data[sq->written], towrite);
if (ret < 0 && !tls_is_recoverable(tls_error(conn->tls))) {
/* an error occured */
/* an error occurred */
conn->error = tls_error(conn->tls);
break;
} else if (ret < towrite) {
@@ -133,7 +133,7 @@ void xmpp_run_once(xmpp_ctx_t *ctx, const unsigned long timeout)
ret = sock_write(conn->sock, &sq->data[sq->written], towrite);
if (ret < 0 && !sock_is_recoverable(sock_error())) {
/* an error occured */
/* an error occurred */
conn->error = sock_error();
break;
} else if (ret < towrite) {
@@ -160,7 +160,7 @@ void xmpp_run_once(xmpp_ctx_t *ctx, const unsigned long timeout)
if (conn->error) {
/* FIXME: need to tear down send queues and random other things
* maybe this should be abstracted */
xmpp_debug(ctx, "xmpp", "Send error occured, disconnecting.");
xmpp_debug(ctx, "xmpp", "Send error occurred, disconnecting.");
conn->error = ECONNABORTED;
conn_disconnect(conn);
}