summaryrefslogtreecommitdiff
path: root/toxav/msi.c
diff options
context:
space:
mode:
authoryangfl <yangfl@users.noreply.github.com>2017-11-07 23:56:18 +0800
committerRobin Lindén <dev@robinlinden.eu>2017-11-19 23:52:23 +0100
commit2651193b991f4b691aa978b079718606891c6d48 (patch)
tree5d30a202c2f604e1e1af9658ddba1913eb617525 /toxav/msi.c
parent4d94a07d255a6af2d3453ac9913a571fee94ee56 (diff)
Fix typo
Diffstat (limited to 'toxav/msi.c')
-rw-r--r--toxav/msi.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/toxav/msi.c b/toxav/msi.c
index 197b0d5e..882dad04 100644
--- a/toxav/msi.c
+++ b/toxav/msi.c
@@ -141,7 +141,7 @@ int msi_kill(MSISession *session, Logger *log)
141 m_callback_msi_packet((struct Messenger *) session->messenger, NULL, NULL); 141 m_callback_msi_packet((struct Messenger *) session->messenger, NULL, NULL);
142 142
143 if (pthread_mutex_trylock(session->mutex) != 0) { 143 if (pthread_mutex_trylock(session->mutex) != 0) {
144 LOGGER_ERROR(session->messenger->log, "Failed to aquire lock on msi mutex"); 144 LOGGER_ERROR(session->messenger->log, "Failed to acquire lock on msi mutex");
145 return -1; 145 return -1;
146 } 146 }
147 147
@@ -175,7 +175,7 @@ int msi_invite(MSISession *session, MSICall **call, uint32_t friend_number, uint
175 LOGGER_DEBUG(session->messenger->log, "Session: %p Inviting friend: %u", session, friend_number); 175 LOGGER_DEBUG(session->messenger->log, "Session: %p Inviting friend: %u", session, friend_number);
176 176
177 if (pthread_mutex_trylock(session->mutex) != 0) { 177 if (pthread_mutex_trylock(session->mutex) != 0) {
178 LOGGER_ERROR(session->messenger->log, "Failed to aquire lock on msi mutex"); 178 LOGGER_ERROR(session->messenger->log, "Failed to acquire lock on msi mutex");
179 return -1; 179 return -1;
180 } 180 }
181 181
@@ -220,7 +220,7 @@ int msi_hangup(MSICall *call)
220 call->friend_number); 220 call->friend_number);
221 221
222 if (pthread_mutex_trylock(session->mutex) != 0) { 222 if (pthread_mutex_trylock(session->mutex) != 0) {
223 LOGGER_ERROR(session->messenger->log, "Failed to aquire lock on msi mutex"); 223 LOGGER_ERROR(session->messenger->log, "Failed to acquire lock on msi mutex");
224 return -1; 224 return -1;
225 } 225 }
226 226
@@ -250,12 +250,12 @@ int msi_answer(MSICall *call, uint8_t capabilities)
250 LOGGER_DEBUG(session->messenger->log, "Session: %p Answering call from: %u", call->session, call->friend_number); 250 LOGGER_DEBUG(session->messenger->log, "Session: %p Answering call from: %u", call->session, call->friend_number);
251 251
252 if (pthread_mutex_trylock(session->mutex) != 0) { 252 if (pthread_mutex_trylock(session->mutex) != 0) {
253 LOGGER_ERROR(session->messenger->log, "Failed to aquire lock on msi mutex"); 253 LOGGER_ERROR(session->messenger->log, "Failed to acquire lock on msi mutex");
254 return -1; 254 return -1;
255 } 255 }
256 256
257 if (call->state != msi_CallRequested) { 257 if (call->state != msi_CallRequested) {
258 /* Though sending in invalid state will not cause anything wierd 258 /* Though sending in invalid state will not cause anything weird
259 * Its better to not do it like a maniac */ 259 * Its better to not do it like a maniac */
260 LOGGER_ERROR(session->messenger->log, "Call is in invalid state!"); 260 LOGGER_ERROR(session->messenger->log, "Call is in invalid state!");
261 pthread_mutex_unlock(session->mutex); 261 pthread_mutex_unlock(session->mutex);
@@ -289,7 +289,7 @@ int msi_change_capabilities(MSICall *call, uint8_t capabilities)
289 call->friend_number); 289 call->friend_number);
290 290
291 if (pthread_mutex_trylock(session->mutex) != 0) { 291 if (pthread_mutex_trylock(session->mutex) != 0) {
292 LOGGER_ERROR(session->messenger->log, "Failed to aquire lock on msi mutex"); 292 LOGGER_ERROR(session->messenger->log, "Failed to acquire lock on msi mutex");
293 return -1; 293 return -1;
294 } 294 }
295 295