@@ -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 }
0 commit comments