Skip to content
This repository was archived by the owner on Oct 29, 2021. It is now read-only.

Commit d1a41c9

Browse files
committed
Fixed occurred spelling error fixes: #96
1 parent 9931ad4 commit d1a41c9

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/event.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ void xmpp_run_once(xmpp_ctx_t *ctx, const unsigned long timeout)
104104
ret = tls_clear_pending_write(conn->tls);
105105

106106
if (ret < 0 && !tls_is_recoverable(tls_error(conn->tls))) {
107-
/* an error occured */
108-
xmpp_debug(ctx, "xmpp", "Send error occured, disconnecting.");
107+
/* an error occurred */
108+
xmpp_debug(ctx, "xmpp", "Send error occurred, disconnecting.");
109109
conn->error = ECONNABORTED;
110110
conn_disconnect(conn);
111111
}
@@ -120,7 +120,7 @@ void xmpp_run_once(xmpp_ctx_t *ctx, const unsigned long timeout)
120120
ret = tls_write(conn->tls, &sq->data[sq->written], towrite);
121121

122122
if (ret < 0 && !tls_is_recoverable(tls_error(conn->tls))) {
123-
/* an error occured */
123+
/* an error occurred */
124124
conn->error = tls_error(conn->tls);
125125
break;
126126
} else if (ret < towrite) {
@@ -133,7 +133,7 @@ void xmpp_run_once(xmpp_ctx_t *ctx, const unsigned long timeout)
133133
ret = sock_write(conn->sock, &sq->data[sq->written], towrite);
134134

135135
if (ret < 0 && !sock_is_recoverable(sock_error())) {
136-
/* an error occured */
136+
/* an error occurred */
137137
conn->error = sock_error();
138138
break;
139139
} else if (ret < towrite) {
@@ -160,7 +160,7 @@ void xmpp_run_once(xmpp_ctx_t *ctx, const unsigned long timeout)
160160
if (conn->error) {
161161
/* FIXME: need to tear down send queues and random other things
162162
* maybe this should be abstracted */
163-
xmpp_debug(ctx, "xmpp", "Send error occured, disconnecting.");
163+
xmpp_debug(ctx, "xmpp", "Send error occurred, disconnecting.");
164164
conn->error = ECONNABORTED;
165165
conn_disconnect(conn);
166166
}

tests/res_query_dump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ int main(int argc, char **argv)
6161
len = res_query(fulldomain, C_IN, T_SRV, buf, sizeof(buf));
6262

6363
if (len < 0) {
64-
fprintf(stderr, "res_query(): Error occured (errno=%d)\n", errno);
64+
fprintf(stderr, "res_query(): Error occurred (errno=%d)\n", errno);
6565
}
6666
if (len == 0) {
6767
fprintf(stderr, "res_query(): Empty result\n");

0 commit comments

Comments
 (0)