Commit 12c12334 authored by johnf's avatar johnf

remove some compile time warnings

git-svn-id: http://svn.annodex.net/liboggz/trunk@3424 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent a1c6ff8f
...@@ -42,6 +42,8 @@ ...@@ -42,6 +42,8 @@
#include "oggz_private.h" #include "oggz_private.h"
#include "oggz_vector.h" #include "oggz_vector.h"
#include <oggz/oggz_stream.h>
/*#define DEBUG*/ /*#define DEBUG*/
#ifdef WIN32 #ifdef WIN32
...@@ -363,7 +365,7 @@ oggz_comment_next_byname (OGGZ * oggz, long serialno, ...@@ -363,7 +365,7 @@ oggz_comment_next_byname (OGGZ * oggz, long serialno,
#define _oggz_comment_add(f,c) oggz_vector_insert_p ((f)->comments, (c)) #define _oggz_comment_add(f,c) oggz_vector_insert_p ((f)->comments, (c))
int int
oggz_comment_add (OGGZ * oggz, long serialno, OggzComment * comment) oggz_comment_add (OGGZ * oggz, long serialno, const OggzComment * comment)
{ {
oggz_stream_t * stream; oggz_stream_t * stream;
OggzComment * new_comment; OggzComment * new_comment;
......
...@@ -60,6 +60,8 @@ ...@@ -60,6 +60,8 @@
#include "oggz_compat.h" #include "oggz_compat.h"
#include "oggz_private.h" #include "oggz_private.h"
#include <oggz/oggz_stream.h>
/* #define DEBUG */ /* #define DEBUG */
/* #define DEBUG_VERBOSE */ /* #define DEBUG_VERBOSE */
......
...@@ -225,7 +225,7 @@ oggz_write_feed (OGGZ * oggz, ogg_packet * op, long serialno, int flush, ...@@ -225,7 +225,7 @@ oggz_write_feed (OGGZ * oggz, ogg_packet * op, long serialno, int flush,
/* Check that the serialno is in the valid range for an Ogg page header, /* 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 */ * 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 #ifdef DEBUG
printf ("oggz_write_feed: serialno %010ld\n", serialno); printf ("oggz_write_feed: serialno %010ld\n", serialno);
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment