linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Linphone-developers] oRTP compilation error


From: Pedro Sanchez
Subject: [Linphone-developers] oRTP compilation error
Date: Thu, 11 Aug 2011 13:44:51 -0400
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110617 Lightning/1.0b2 Thunderbird/3.1.11

Hello,

This error shows up with the default compilation options:

cc1: warnings being treated as errors
stun.c: In function 'stunRand':
stun.c:1221: error: ignoring return value of 'read', declared with attribute warn_unused_result
  CC     stun_udp.lo
make[6]: *** [stun.lo] Error 1

This patch fixes it:

diff --git a/src/stun.c b/src/stun.c
index e0d7c80..8292d19 100644
--- a/src/stun.c
+++ b/src/stun.c
@@ -1218,7 +1218,7 @@ stunRand(void)
            closesocket(fd);
           return random();
        }
-       read(fd,&tick,sizeof(tick));
+       e = read(fd,&tick,sizeof(tick));
        closesocket(fd);
       }
 #else


--
Pedro



reply via email to

[Prev in Thread] Current Thread [Next in Thread]