diff --git a/toxav/toxav.c b/toxav/toxav.c index d7de0326..1aa4d6b4 100644 --- a/toxav/toxav.c +++ b/toxav/toxav.c @@ -580,7 +580,7 @@ int toxav_get_peer_id ( ToxAv *av, int32_t call_index, int peer ) ToxAvCallState toxav_get_call_state(ToxAv *av, int32_t call_index) { if ( cii(call_index, av->msi_session) || !av->msi_session->calls[call_index] ) - return av_CallNonExistant; + return av_CallNonExistent; return av->msi_session->calls[call_index]->state; diff --git a/toxav/toxav.h b/toxav/toxav.h index acee3f85..8d4db14a 100644 --- a/toxav/toxav.h +++ b/toxav/toxav.h @@ -69,12 +69,12 @@ typedef enum { typedef enum { - av_CallNonExistant = -1, + av_CallNonExistent = -1, av_CallInviting, /* when sending call invite */ av_CallStarting, /* when getting call invite */ av_CallActive, av_CallHold, - av_CallHanged_up + av_CallHungUp } ToxAvCallState; /**