diff options
author | Alfred E. Heggestad <alfred.heggestad@gmail.com> | 2017-09-10 21:33:45 +0200 |
---|---|---|
committer | Alfred E. Heggestad <alfred.heggestad@gmail.com> | 2017-09-10 21:33:45 +0200 |
commit | 8fa77415960bc6811715e6182bfc2fe4ef434f67 (patch) | |
tree | ee85590a978c4b3a929247d53bde8b737a3577b0 /modules/presence/subscriber.c | |
parent | 639c20bbf0085de7b5265c80ab29aba58fc371cb (diff) |
use warning() instead of error()
ref https://github.com/alfredh/baresip/issues/295
Diffstat (limited to 'modules/presence/subscriber.c')
-rw-r--r-- | modules/presence/subscriber.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/presence/subscriber.c b/modules/presence/subscriber.c index 914f74d..11da6d4 100644 --- a/modules/presence/subscriber.c +++ b/modules/presence/subscriber.c @@ -280,6 +280,7 @@ static int presence_alloc(struct contact *contact) return 0; } + static void contact_handler(struct contact *contact, bool removed, void *arg) { @@ -293,7 +294,7 @@ static void contact_handler(struct contact *contact, 0 == pl_strcasecmp(&val, "p2p")) { if (!removed) { if (presence_alloc(contact) != 0) { - error("presence: presence_alloc failed\n"); + warning("presence: presence_alloc failed\n"); return; } } @@ -311,7 +312,7 @@ static void contact_handler(struct contact *contact, mem_deref(pres); } else { - error("presence: No contact to remove\n"); + warning("presence: No contact to remove\n"); } } } |