[sr-dev] git:master: seas: fix warning [-Wunused-result]
Ovidiu Sas
osas at voipembedded.com
Thu Apr 18 22:03:30 CEST 2013
Module: sip-router
Branch: master
Commit: e3c0a3abb6045e841fbb4b1b61a518b2b87a217d
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e3c0a3abb6045e841fbb4b1b61a518b2b87a217d
Author: Ovidiu Sas <osas at voipembedded.com>
Committer: Ovidiu Sas <osas at voipembedded.com>
Date: Thu Apr 18 16:03:50 2013 -0400
seas: fix warning [-Wunused-result]
- ignoring return value of write, declared with attribute warn_unused_result [-Wunused-result]
---
modules/seas/seas_action.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/modules/seas/seas_action.c b/modules/seas/seas_action.c
index 7e2e4f1..d1267d5 100644
--- a/modules/seas/seas_action.c
+++ b/modules/seas/seas_action.c
@@ -1410,7 +1410,9 @@ int as_action_fail_resp(int uac_id,int sip_error,char *err_buf,int i)
k+=i;
ev_len=htonl(k);
memcpy(msg,&ev_len,4);
- write(my_as->u.as.action_fd,msg,k);
+ if(write(my_as->u.as.action_fd,msg,k)<=0){
+ LM_DBG("Ignoring error write\n");
+ }
return 0;
}
More information about the sr-dev
mailing list