mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 21:22:09 +00:00
Lots of trivial tweaks to minimize compiler warnings, especially on 64-bit platform: Added missing type casts, changed types, added missing NULL checks.
This commit is contained in:
@@ -1071,7 +1071,8 @@ static int debounce_check(sofia_profile_t *profile, const char *user, const char
|
||||
int r = 0;
|
||||
time_t *last, now = switch_epoch_time_now(NULL);
|
||||
|
||||
snprintf(key, sizeof(key), "%s%s", user, host);
|
||||
snprintf(key, sizeof(key)-1, "%s%s", user, host);
|
||||
key[sizeof(key)-1] = '\0';
|
||||
|
||||
switch_mutex_lock(profile->ireg_mutex);
|
||||
if ((last = switch_core_hash_find(profile->mwi_debounce_hash, key))) {
|
||||
|
||||
Reference in New Issue
Block a user