mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-30 16:13:51 +00:00
Use memcmp() instead of bcmp()
- bcmp() is unavailable on Linux - all the b*() functions are deprecated, should use the mem*() equivalents instead
This commit is contained in:
parent
9df492ca46
commit
930d7b5791
4
vomp.c
4
vomp.c
@ -48,8 +48,8 @@ vomp_call_state *vomp_find_or_create_call(unsigned char *remote_sid,
|
||||
continue;
|
||||
if (recvr_session&(recvr_session!=vomp_call_states[i].local.session))
|
||||
continue;
|
||||
if (bcmp(remote_sid,vomp_call_states[i].remote.sid,SID_SIZE)) continue;
|
||||
if (bcmp(local_sid,vomp_call_states[i].local.sid,SID_SIZE)) continue;
|
||||
if (memcmp(remote_sid,vomp_call_states[i].remote.sid,SID_SIZE)) continue;
|
||||
if (memcmp(local_sid,vomp_call_states[i].local.sid,SID_SIZE)) continue;
|
||||
|
||||
/* it matches. but has it expired (no activity in 120 seconds)? */
|
||||
if (vomp_call_states[i].last_activity<(overlay_gettime_ms()-120000))
|
||||
|
Loading…
x
Reference in New Issue
Block a user