From 1db8aa445fdab9168bf649225feef804761132b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Tue, 20 Jun 2006 01:46:41 +0000 Subject: Fix generic warnings. CVS patchset: 8065 CVS date: 2006/06/20 01:46:41 --- src/input/input_pvr.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/input/input_pvr.c') diff --git a/src/input/input_pvr.c b/src/input/input_pvr.c index 002b21b32..843e7c3e6 100644 --- a/src/input/input_pvr.c +++ b/src/input/input_pvr.c @@ -38,7 +38,7 @@ * usage: * xine pvr:/\!\! * - * $Id: input_pvr.c,v 1.60 2006/05/03 19:46:07 dsalt Exp $ + * $Id: input_pvr.c,v 1.61 2006/06/20 01:46:41 dgp85 Exp $ */ /************************************************************************** @@ -579,7 +579,7 @@ static int pvr_break_rec_page (pvr_input_plugin_t *this) { char *filename; - if( this->session == -1 ) /* not recording */ + if( this->session == (unsigned)-1 ) /* not recording */ return 1; if( this->rec_fd != -1 && this->rec_fd != this->play_fd ) { @@ -607,9 +607,9 @@ static int pvr_break_rec_page (pvr_input_plugin_t *this) { free(filename); /* erase first_page if old and not to be saved */ - if( this->max_page_age != -1 && + if( this->max_page_age != (unsigned)-1 && this->rec_page - this->max_page_age == this->first_page && - (this->save_page == -1 || this->first_page < this->save_page) ) { + (this->save_page == (unsigned)-1 || this->first_page < this->save_page) ) { filename = make_temp_name(this, this->first_page); @@ -635,7 +635,7 @@ static int pvr_rec_file(pvr_input_plugin_t *this) { off_t pos; - if( this->session == -1 ) /* not recording */ + if( this->session == (unsigned)-1 ) /* not recording */ return 1; /* check if it's time to change page/file */ @@ -907,7 +907,7 @@ static void pvr_finish_recording (pvr_input_plugin_t *this) { src_filename = make_temp_name(this, i); - if( this->save_page == -1 || i < this->save_page ) { + if( this->save_page == (unsigned)-1 || i < this->save_page ) { lprintf("erasing old pvr file (%s)\n", src_filename); remove(src_filename); @@ -926,7 +926,7 @@ static void pvr_finish_recording (pvr_input_plugin_t *this) { free(src_filename); } - if( this->save_page != -1 && (!this->save_name || !strlen(this->save_name)) ) { + if( this->save_page != (unsigned)-1 && (!this->save_name || !strlen(this->save_name)) ) { saved_show_t *show = malloc(sizeof(saved_show_t)); xine_event_t event; xine_pvr_save_data_t data; -- cgit v1.2.3