[xiph-commits] r3424 - liboggz/trunk/src/liboggz

johnf at svn.annodex.net johnf at svn.annodex.net
Sat Feb 9 01:36:03 PST 2008


Author: johnf
Date: 2008-02-09 01:36:01 -0800 (Sat, 09 Feb 2008)
New Revision: 3424

Modified:
   liboggz/trunk/src/liboggz/oggz_comments.c
   liboggz/trunk/src/liboggz/oggz_read.c
   liboggz/trunk/src/liboggz/oggz_write.c
Log:
remove some compile time warnings

Modified: liboggz/trunk/src/liboggz/oggz_comments.c
===================================================================
--- liboggz/trunk/src/liboggz/oggz_comments.c	2008-02-09 08:29:36 UTC (rev 3423)
+++ liboggz/trunk/src/liboggz/oggz_comments.c	2008-02-09 09:36:01 UTC (rev 3424)
@@ -42,6 +42,8 @@
 #include "oggz_private.h"
 #include "oggz_vector.h"
 
+#include <oggz/oggz_stream.h>
+
 /*#define DEBUG*/
 
 #ifdef WIN32                                                                   
@@ -363,7 +365,7 @@
 #define _oggz_comment_add(f,c) oggz_vector_insert_p ((f)->comments, (c))
 
 int
-oggz_comment_add (OGGZ * oggz, long serialno, OggzComment * comment)
+oggz_comment_add (OGGZ * oggz, long serialno, const OggzComment * comment)
 {
   oggz_stream_t * stream;
   OggzComment * new_comment;

Modified: liboggz/trunk/src/liboggz/oggz_read.c
===================================================================
--- liboggz/trunk/src/liboggz/oggz_read.c	2008-02-09 08:29:36 UTC (rev 3423)
+++ liboggz/trunk/src/liboggz/oggz_read.c	2008-02-09 09:36:01 UTC (rev 3424)
@@ -60,6 +60,8 @@
 #include "oggz_compat.h"
 #include "oggz_private.h"
 
+#include <oggz/oggz_stream.h>
+
 /* #define DEBUG */
 /* #define DEBUG_VERBOSE */
 

Modified: liboggz/trunk/src/liboggz/oggz_write.c
===================================================================
--- liboggz/trunk/src/liboggz/oggz_write.c	2008-02-09 08:29:36 UTC (rev 3423)
+++ liboggz/trunk/src/liboggz/oggz_write.c	2008-02-09 09:36:01 UTC (rev 3424)
@@ -225,7 +225,7 @@
 
   /* Check that the serialno is in the valid range for an Ogg page header,
    * ie. that it fits within 32 bits and does not equal the special value -1 */
-  if ((serialno & 0xffffffff) != serialno || serialno == -1) {
+  if ((serialno & 0xffffffff) != (unsigned int) serialno || serialno == -1) {
 #ifdef DEBUG
     printf ("oggz_write_feed: serialno %010ld\n", serialno);
 #endif



More information about the commits mailing list