Author: sparky                       Date: Sun May  3 13:03:06 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- added Werror.patch (unused return value in read())

---- Files affected:
packages/ortp:
   ortp.spec (1.16 -> 1.17) , ortp-Werror.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/ortp/ortp.spec
diff -u packages/ortp/ortp.spec:1.16 packages/ortp/ortp.spec:1.17
--- packages/ortp/ortp.spec:1.16        Fri Feb 27 22:31:26 2009
+++ packages/ortp/ortp.spec     Sun May  3 15:03:00 2009
@@ -9,6 +9,7 @@
 Source0:       
http://download.savannah.nongnu.org/releases/linphone/ortp/sources/%{name}-%{version}.tar.gz
 # Source0-md5: caa6bebf049629cdc05ef34b9d4ee5e1
 Patch0:                %{name}-i486.patch
+Patch1:                %{name}-Werror.patch
 URL:           http://www.linphone.org/index.php/eng/code_review/ortp
 BuildRequires: autoconf >= 2.50
 BuildRequires: automake
@@ -52,6 +53,7 @@
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__libtoolize}
@@ -102,6 +104,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.17  2009/05/03 13:03:00  sparky
+- added Werror.patch (unused return value in read())
+
 Revision 1.16  2009/02/27 21:31:26  arekm
 - up to 0.15.0
 

================================================================
Index: packages/ortp/ortp-Werror.patch
diff -u /dev/null packages/ortp/ortp-Werror.patch:1.1
--- /dev/null   Sun May  3 15:03:06 2009
+++ packages/ortp/ortp-Werror.patch     Sun May  3 15:03:00 2009
@@ -0,0 +1,27 @@
+--- ortp-0.15.0/src/stun.c~    2009-05-03 14:51:36.000000000 +0200
++++ ortp-0.15.0/src/stun.c     2009-05-03 14:56:07.000000000 +0200
+@@ -1109,6 +1109,7 @@
+       fd_set fdSet;
+       int maxFd=0;
+       struct timeval tv;
++      size_t got;
+       int e;
+ 
+         int fd=open("/dev/random",O_RDONLY);
+@@ -1132,8 +1133,15 @@
+            closesocket(fd);
+          return random();
+       }
+-      read(fd,&tick,sizeof(tick));
++      got = read(fd,&tick,sizeof(tick));
+       closesocket(fd);
++
++      if (got != sizeof(tick))
++      {
++          ortp_message("stun: Failed to get data from random device\n");
++          return random();
++      }
++
+       }
+ #else
+ #     error Need some way to seed the random number generator 
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/ortp/ortp.spec?r1=1.16&r2=1.17&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to